Orsi Posted October 20, 2011 Share Posted October 20, 2011 This scripts is the last <FirstLogonCommands> task. It launches properly but quits right after "echo *** DELETING TEMPORARY FILES", so none of the desktop items r excluded, Windows doesnt reboot after either and RunOnceEx script isnt added to registry. Whats wrong with it?Tks@echo offcolor A0clsecho *** DISK CLEANUPstart /wait c:\windows\system32\cleanmgr.exe /sagerun: 100echo *** CCLEANERstart "CCLEANER" /wait "C:\Program Files\CCleaner\CCleaner64.exe" /AUTOecho *** DELETING TEMPORARY FILESDEL /F /Q "%systemdrive%\Appz\*.*"RD /S /Q "%systemdrive%\Appz"DEL /F /Q /A:H "%Public%\Desktop\desktop.ini"DEL /F /Q /A:H "%UserProfile%\Desktop\desktop.ini"DEL /F /Q /A:H "%UserProfile%\Desktop\desktop.iniDEL /F /Q "%UserProfile%\Desktop\Easy Duplicate Finder.lnk"DEL /F /Q "%UserProfile%\Desktop\UltraISO.lnk"DEL /F /Q "%UserProfile%\Desktop\Driver Genius Professional Edition.lnk"DEL /F /Q "%UserProfile%\Desktop\Google Chrome.lnk"DEL /F /Q "%Public%\Desktop\Adobe Content Viewer.lnk"DEL /F /Q "%Public%\Desktop\Adobe Acrobat X Pro.lnk"DEL /F /Q "%Public%\Desktop\Microsoft LifeCam.lnk"DEL /F /Q "%Public%\Desktop\Nero MediaHub 10.lnk"DEL /F /Q "%Public%\Desktop\Nero Burning ROM 10.lnk"DEL /F /Q "%Public%\Desktop\Nero Vision 10.lnk"DEL /F /Q "%Public%\Desktop\Yahoo! Messenger.lnk"DEL /F /Q "%Public%\Desktop\EASEUS*.lnk"DEL /F /Q "%Public%\Desktop\EASEUS Partition Master 9.0 Server Edition.lnk"DEL /F /Q "%Public%\Desktop\HP Photosmart Essential 3.5.lnk"DEL /F /Q "%Public%\Desktop\Mozilla Firefox.lnk"DEL /F /Q "%Public%\Desktop\PC Inspector File Recovery.lnk"DEL /F /Q "%Public%\Desktop\Wise PC Engineer.lnk"DEL /F /Q "%Public%\Desktop\CCleaner.lnk"DEL /F /Q "%Public%\Desktop\CPUID CPU-z.lnk"DEL /F /Q "%UserProfile%\Desktop\desktop.ini"DEL /F /Q "C:\Program Files\desktop.ini"%systemdrive%\Appz\runonce.batshutdown.exe -r -f -t 30 -c "O Sistema será reiniciado em 30 segundos."EXIT Link to comment Share on other sites More sharing options...
allen2 Posted October 20, 2011 Share Posted October 20, 2011 The missing " : DEL /F /Q /A:H "%UserProfile%\Desktop\desktop.ini" Link to comment Share on other sites More sharing options...
Orsi Posted October 20, 2011 Author Share Posted October 20, 2011 (edited) oh... I'll test it in a few minutestks! Edited October 20, 2011 by Orsi Link to comment Share on other sites More sharing options...
bphlpt Posted October 21, 2011 Share Posted October 21, 2011 Actually, he should be able to just delete the line with the missing ("). It seems to be a duplicate line. He also should have noticed what the problem was as soon as he read over his own post since the forum software changed the color of all the lines below it, indicating that it was "reversing" the command and parameter portions of each line.Cheers and Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now