Posted October 15, 201410 yr 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??
October 15, 201410 yr when this cmd start? user profile is create during the welcome screen. SetupComplete.cmd works before. Edited October 15, 201410 yr by kalimergo
October 16, 201410 yr try to replace "%userprofile%\desktop\*.lnk"by "%systemdrive%\Users\myprofile\desktop\*.lnk" Edited October 16, 201410 yr by kalimergo
October 16, 201410 yr 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"
October 16, 201410 yr try this del /s/q "%systemdrive%\Users\Public\*.lnk" some desktop links are in Public folder Edited October 16, 201410 yr by kalimergo
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.