Bogstench Posted March 15, 2006 Posted March 15, 2006 Hi Folks I have made a very nice Windows install which has taken me about a month so far lol I have about 60 apps instaled some via a batch file and some intergrated into the windows install. I have a clean and tweak file run after the installing of these so that my desktop isnt a mess with loads of shortcuts, the only problem I have is that the Start Menu is such a mess its insane. I have tried 2 differnet ways of cleaning this so far and none have worked.Move the shortcut to another folder and then Del the folder which is not needed, didnt work. Copy the shortcut to another folder and then delete the folder also didnt work. Any ideas on how else I could do this or even a basic command which would do this please??!!
Djé Posted March 15, 2006 Posted March 15, 2006 What exactly doesn't work? copying? deleting? both?Why not posting your code (both versions) so we can criticize it and laugh look what's wrong with it?Sorry for the bad joke .
Bogstench Posted March 15, 2006 Author Posted March 15, 2006 Joke lol yeh Im laughing and pulling my hair out lolthey both didnt work.the basic code i used in the batch file well were basic dos commands such as MOVE, DEL, XCOPY I kinda deleted what I wrote out as it didnt work and like i said i was pulling my hair out.what would you suggest as you are so mighty lol
Djé Posted March 15, 2006 Posted March 15, 2006 xcopy "%ALLUSERSPROFILE%\Menu D‚marrer\Programmes\7-Zip" "%ALLUSERSPROFILE%\Menu D‚marrer\Programmes\Compression" /H /I /Y works very fine here, although not tested during setup nor RunOnceEx.Would it help you keep your hair on?
Bogstench Posted March 15, 2006 Author Posted March 15, 2006 hmm ok will try it is the same as I did before just didnt add the /H /I, what are these switches for anyhow so that I know for future referance ?Oh and the hair lol well am losing it anyway thx Sweet just gave it a try and this is what I have now to sort te start menu the way I want xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\nlite\nlite.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\nlite"Thanks very much for your help
Djé Posted March 15, 2006 Posted March 15, 2006 I don't want to abuse my power so I would just suggest:- /? on any command for comprehensive explanations about its usage- Petrol Hahn for your hair! Btw, when you'll have your script finished and working, why not contributing it here so everybody can benefit from it?Cheers
Bogstench Posted March 15, 2006 Author Posted March 15, 2006 hahn what for my hair lolnever heard of it ................Yeh will add when complete, have the install batch itself is miles long lol then the clean and reg tweak lolwill add the lot when done making changes now for the start menu thx again
Gouki Posted March 15, 2006 Posted March 15, 2006 Im terrible "coding" for batch files, but I can post a section where I cleanup some of the stuff from Start Menu.move "%userprofile%\Start Menu\Programs\CCleaner" "%userprofile%\Start Menu\Programs\Aplications"move "%userprofile%\Start Menu\Programs\*Adobe*.lnk" "%userprofile%\Start Menu\Programs\Aplications"move "%userprofile%\Start Menu\Programs\*Ad-aware*" "%userprofile%\Start Menu\Programs\Internet Tools"move "%allusersprofile%\Start Menu\Programs\*Ad-aware*" "%userprofile%\Start Menu\Programs\Internet Tools"move "%userprofile%\Start Menu\Programs\Spybot - Search & Destroy\Spybot - Search & Destroy.lnk" "%userprofile%\Start Menu\Programs\Internet Tools"move "%allusersprofile%\Start Menu\Programs\Spybot - Search & Destroy\Spybot - Search & Destroy.lnk" "%userprofile%\Start Menu\Programs\Internet Tools"move "%UserProfile%\Start Menu\Programs\Accessories\Windows Explorer.lnk" "%uSERpROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch"del /S /Q "%UserProfile%\Start Menu\Programs\Startup\Adobe Reader Speed Launcher.lnk"del /S /Q "%UserProfile%\Desktop\Adobe Reader 7.0.lnk"del /S /Q "%UserProfile%\Desktop\*Spybot*.lnk"del /S /Q "%UserProfile%\Desktop\*Ad-aware*.lnk"del /S /Q "%UserProfile%\Desktop\*CCleaner*.lnk"del /S /Q "%UserProfile%\Desktop\*Mozilla*.lnk"del /S /Q "%allusersProfile%\Desktop\*Mozilla*.lnk"del /S /Q "%userprofile%\Start Menu\Programs\Aplications\CCleaner Homepage.url"del /S /Q "%userprofile%\Start Menu\Programs\Aplications\Uninstall CCleaner.lnk"del /S /Q "%uSERpROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\*Spybot*.lnk"del /S /Q "%allusersprofile%\Start Menu\Programs\Spybot - Search & Destroy\Uninstall Spybot - Search & Destroy.lnkdel /S /Q "%userprofile%\Start Menu\Programs\Internet Tools\Ad-aware SE Manual.lnk"del /S /Q "%allusersprofile%\Start Menu\Programs\Internet Tools\Ad-aware SE Manual.lnk"Now you decide what to do with it.P.S: I know it's a mess, but it gets the thing done!
gunsmokingman Posted March 15, 2006 Posted March 15, 2006 Here try a VBS script to clean up your start menuRemove the ' from 'StartMenuFiles = Array() and add you filename StartMenuFiles = Array("SomeFile.Ink", "AnotherFile.Ink")Remove the ' from 'StartMenuFolder = Array() and add you filename StartMenuFolder = Array("SomeFolder", "AnotherFolder")Const PROGRAMS = &H2&Dim Act, Fso, Ext, Folder, FolderItem, StartMenuFiles, StartMenuFolder, Shell, StrFldrSet Fso = CreateObject("Scripting.FileSystemObject")Set Act = CreateObject("Wscript.Shell") '''' PLACE THE FILES YOU WANT TO MOVE HERE'StartMenuFiles = Array()'StartMenuFolder = Array()Set Shell = CreateObject("Shell.Application")Set Folder = Shell.Namespace(PROGRAMS)Set FolderItem = Folder.SelfWscript.Echo FolderItem.PathSet StrFldr = Folder.ItemsFor Each objItem in StrFldr Wscript.Echo objItem.Name Wscript.Echo objItem.Path'''' ARRAY FOR FILE TO BE MOVE COPY OR DELETEDFor Each strSMFiles In StartMenuFiles If Fso.FileExists(strSMFiles) Then Fso.CopyFile(strSMFiles),("PLACE_NEW_LOCATION_HERE") Fso.DeleteFile(strSMFiles) End If Next '''' ARRAY FOR FILE TO BE MOVE COPY OR DELETEDFor Each strSMFolder In StartMenuFolderIf Fso.FileExists(strSMFolder) Then Fso.CopyFolder(strSMFolder),("PLACE_NEW_LOCATION_HERE") Fso.DeleteFile(strSMFolder)End If Next Next
Bogstench Posted March 15, 2006 Author Posted March 15, 2006 sweet a few options now I didnt even think of using * to shorten the link/folder names lol wickedwell here is what I have so far, is complete with all the shortcuts in my menu am just creating an iso now to test it.REM Copying shortcuts into clean folders and deleting origxcopy "%ALLUSERSPROFILE%\Start Menu\Programs\DVD Shrink\DVD Shrink 3.2.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\DVD" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\DVD Shrink"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\dvdSanta\dvdSanta.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\DVD" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\dvdSanta"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\DU Meter\DU Meter.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Network Utilities" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\DU Meter"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Cyberlink PowerDVD\Cyberlink PowerDVD.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\DVD" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Cyberlink PowerDVD"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\DVD Shrink\DVD Shrink.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\DVD" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\DVD Shrink"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Nero\Nero Smartstart.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\CD-R" /H /I /Yxcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Nero\Nero 6 Ultra Edition\Nero*.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\CD-R" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Nero"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\eMule\eMule.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Internet Utilites" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\eMule"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\FolderSizes\FolderSizes.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\FolderSizes"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Hitman Pro\Hitman Pro.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Security" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Hitman Pro"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Skype\Skype.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Internet Utilites" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Skype"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Spyware Doctor\Spyware Doctor.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Security" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Spyware Doctor"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Utilities\Crap Cleaner.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Utilities"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\RegSupreme\RegSupreme.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\RegSupreme"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Registry Mechanic\Registry Mechanic.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Registry Mechanic"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Recover My Files\Recover My Files.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\Recover My Files"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\TweakNow PowerPack 2006\TweakNow*.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\TweakNow PowerPack 2006"xcopy "%USERPROFILE%\Start Menu\Programs\Defragmenter Pro Plus\Defragmenter Pro Plus.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\System Tools" /H /I /YRD /S /Q "%UserProfile%\Start Menu\Programs\Defragmenter Pro Plus"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\Lavasoft Ad-Aware SE Personal\*Lavasoft*.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\Security" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\*Lavasoft*"xcopy "%ALLUSERSPROFILE%\Start Menu\Programs\µTorrent\µTorrent.lnk" "%ALLUSERSPROFILE%\Start MEnu\Programs\Accessories\Internet Utilites" /H /I /YRD /S /Q "%AllUsersProfile%\Start Menu\Programs\µTorrent"Will post the lot when done and all works fine
Yzöwl Posted March 15, 2006 Posted March 15, 2006 Don't bother with xcopy, for single filesPUSHD %ALLUSERSPROFILE%\Start Menu\ProgramsMOVE "Application Folder\Shortcut.lnk" "New Folder" &&RD /S/Q "Application Folder" etc.POPD
gunsmokingman Posted March 15, 2006 Posted March 15, 2006 Here a link to a clean up template thread I did read it and it will help you edit or make your own script.Clean Up Templates
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