View Single Post
02 May 2012  

Windows 2008 R2, Windows 7 Enterprise, Ubuntu 11.10
Problem with a script that should remove and add shortcuts


Im going to install windows 7 on 20+ machines. So I have taken an old auto-install script I had for windows XP and trying to make it work for windows 7.

WHat I want it to do is to remove the shortcut "" for all users from the desktop and I want "" to be added to the "autostart" for all users

So here is the string from the old script:

echo Städa Spark...
xcopy "%ALLUSERSPROFILE%\desktop\Spark.exe.lnk" "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Startup\spark.exe.lnk" /I /E /H /Q

del "%ALLUSERSPROFILE%\desktop\Spark.exe.lnk"

How do I make it work in windows 7?
Is the enviorment variable %allusersprofile% not working in windows 7?

Thanks for any help

My System SpecsSystem Spec