Chris2k Posted October 15, 2014 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
kalimergo Posted October 15, 2014 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
kalimergo Posted October 16, 2014 Posted October 16, 2014 (edited) try to replace "%userprofile%\desktop\*.lnk"by "%systemdrive%\Users\myprofile\desktop\*.lnk" Edited October 16, 2014 by kalimergo Quote
ricktendo Posted October 16, 2014 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
kalimergo Posted October 16, 2014 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
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.