Yes so to make another line in the file i would add another line for example
echo Line 1>> %systemdrive%\cleanit.bat
echo Line 2 >> %systemdrive%\cleanit.bat
Ah i get it , first line is just making a new file so needs to overwrite everthing (one >) second line its just adding to it so needs two >> , am i right ??
Originally posted by Tkey Also i see that the file is created on the systemdrive first , can you create it in the /start menu/... directory first rather than moving it?? (why you want to do this i wouldnt know but just for future refrence )
You can create the file wherever you like providing there are no policies in place preventing it. Back in DOS I used to create new batch files in the root of the primary drive quite a bit, therefore if an error arose in the file creation or an operation of some sort it was clear exactly where the file(s) were sitting etc...