BoardBabe Posted November 14, 2005 Share Posted November 14, 2005 During cleanup I randel /q "%UserProfile%\Mine dokumenter\Mine bilder\Eksempelbilder.lnk"del /q "%UserProfile%\Mine dokumenter\Mine musikk\Eksempelmusikk.lnk"Paths are correct -Norwegian Windows XP. The shortcuts was still there after computers last reboot.I tried to manually run the two lines from cmd and the shortcuts were removed... Any idea? Link to comment Share on other sites More sharing options...
Sonic Posted November 14, 2005 Share Posted November 14, 2005 Perhaps the cmd exit beforce these two line, for example because another cause an error and exit without running these lines, try to insert a "pause" and echo on to look all the command and the result. Link to comment Share on other sites More sharing options...
BoardBabe Posted November 14, 2005 Author Share Posted November 14, 2005 That's not it Link to comment Share on other sites More sharing options...
Sonic Posted November 14, 2005 Share Posted November 14, 2005 When you run your cmd ? This must run in a session .. not at cmdlines.txt for example ... Link to comment Share on other sites More sharing options...
yoz7120 Posted November 14, 2005 Share Posted November 14, 2005 Try removing the folders from the %AllUsersProfile% first and then delete the link. In my cleanup command I use the followingRD /S /Q "%AllUsersProfile%\Documents\My Music"RD /S /Q "%AllUsersProfile%\Documents\My Pictures"RD /S /Q "%AllUsersProfile%\Documents\My Videos"DEL /F "%UserProfile%\My Documents\My Music\Sample Music.lnk"DEL /F "%UserProfile%\My Documents\My Pictures\Sample Pictures.lnk"DEL /F "%UserProfile%\My Documents\My Videos\Sample Videos.lnk" Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 14, 2005 Share Posted November 14, 2005 Try this vbs script I have used the directory you have provided, I do nothave a way to test this. Save As Remove_MusicLinks.VBSOn Error Resume NextDim Act, Fso, UPSet Act = CreateObject("WScript.Shell")Set Fso = CreateObject("Scripting.FileSystemObject")UP = Act.ExpandEnvironmentStrings("%UserProfile%")Fso.DeleteFile(UP & "Mine dokumenter\Mine bilder\Eksempelbilder.lnk")Fso.DeleteFile(UP & "Mine dokumenter\Mine bilder\Eksempelmusikk.lnk") 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