Noobish question
Posted: 03 Sep 2009 20:17
I want to enter a command on opening of the command prompt. How would I go about doing so?
this doesn't work and I couldn't find it elsewhere.
also as a side not what is the batch source variable? according to the dostips sit it is %0 but when you put in a batch
it returns the source address.
Code: Select all
start "%windir%\system32\cmd.exe" {commands}
this doesn't work and I couldn't find it elsewhere.
also as a side not what is the batch source variable? according to the dostips sit it is %0 but when you put in a batch
Code: Select all
file echo %0 >file.txt
it returns the source address.