Chris2k Posted October 15, 2014 Share Posted October 15, 2014 3 bloody days to get this .cmd working, to noo avcail....@echo offdel /s /q "%userprofile%\desktop\*.lnk"del /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Run.exe"del /s /q "C:\FirstLogon.exe"echo.echo ################ Done... ############pause just ssays could not find files, Any help?? Quote Link to comment Share on other sites More sharing options...
kalimergo Posted October 15, 2014 Share Posted October 15, 2014 (edited) when this cmd start? user profile is create during the welcome screen. SetupComplete.cmd works before. Edited October 15, 2014 by kalimergo Quote Link to comment Share on other sites More sharing options...
Chris2k Posted October 15, 2014 Author Share Posted October 15, 2014 I run it on desktop load.. Quote Link to comment Share on other sites More sharing options...
kalimergo Posted October 16, 2014 Share Posted October 16, 2014 (edited) try to replace "%userprofile%\desktop\*.lnk"by "%systemdrive%\Users\myprofile\desktop\*.lnk" Edited October 16, 2014 by kalimergo Quote Link to comment Share on other sites More sharing options...
ricktendo Posted October 16, 2014 Share Posted October 16, 2014 You can also change "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Run.exe" to "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Run.exe" Quote Link to comment Share on other sites More sharing options...
kalimergo Posted October 16, 2014 Share Posted October 16, 2014 (edited) try this del /s/q "%systemdrive%\Users\Public\*.lnk" some desktop links are in Public folder Edited October 16, 2014 by kalimergo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.