Quote:
Originally posted by Stormdev Code: @echo off
echo @echo off > %systemdrive%\cleanit.bat
echo rmdir /q /s %userprofile%\nameoffoldertodelete >> %systemdrive%\cleanit.bat
move %systemdrive%\cleanit.bat "%systemdrive%\documents and settings\all users\start menu\programs\startup"
echo Batchfile Created... Type exit and hit enter...
|
When makeit.bat is run by a user it does the following:
Line 1: Turns Output Echoing Off (@echo off) so the commands are not spit out to the screen.
Line 2: Creates a new batch file named cleanit.bat with one line of text (@echo off) on the users windows install root (usually C:\) - %systemdrive%\cleanit.bat
Line 3: Appends the command you needed to delete a folder in the specified location to the cleanit.bat file.
Line 4: Moves the newly created cleanit.bat file to the all users startup folder so it runs on startup.
Line 5: Outputs a message that the batchfile was created...
Does this help clarify things a bit?