bigred Posted August 12, 2003 Posted August 12, 2003 My last (yes, last ) problem I'm having is copying shortcuts to the Start Menu/Programs Folder...This is what I've been doing:ECHO Installing TweakUI PowerToyCOPY "%systemdrive%\install\TweakUI\TweakUi.exe" "%systemroot%\System32\"COPY "%systemdrive%\install\TweakUI\Tweak UI.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Tweak UI.lnk"ECHO.ECHO Installing Resource HackerXCOPY /E /Q "%systemdrive%\install\Resource Hacker\Resource Hacker" "%systemdrive%\Program Files\Resource Hacker"copy "%systemdrive%\install\Resource Hacker\Resource Hacker.lnk" "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\Resource Hacker.lnk"In my install Folder I have 1 folder named Resource Hacker, and in that I have a) a shortcut to C:\Program Files\Resource Hacker\Resource Hacker.exe, and a folder called Resource Hacker which contains the executable and program files...For Tweak UI, it copies the file to the system32 folder properly, but it won't put the shortcut in the Programs Folder (it says it can't find the path)For Resource Hacker it says that it can't find the path (this will be for the first command which copies the folder), and also that the system can't find the file (this will be for the shortcut file)....I'm so close to being done, but boy this has me frustrated....Thank you to anyone who can help
DaveXP Posted August 12, 2003 Posted August 12, 2003 i had that problem i just copyed the .exe file instead to the desktop it still works.
Aaron Posted August 12, 2003 Posted August 12, 2003 COPY "%systemdrive%\install\TweakUI\Tweak UI.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Tweak UI.lnk"should beCOPY "%systemdrive%\install\TweakUI\Tweak UI.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\"
bigred Posted August 12, 2003 Author Posted August 12, 2003 OK....thanks Aaron...I didn't realize I wasn't supposed to name the shortcut at the destination...Thanks for all of your help... you must be getting sick of me by now
bigred Posted August 12, 2003 Author Posted August 12, 2003 OK...I have one more question on this shortcuts issue....The shortcut that I'm copying from my install folder to the Start Menu\Programs folder....I'm assuming it is a shortcut to C:\Program Files\"appropriate folder"\"application name.exe" right?And do I actually rename this shortcut with a .lnk extension while it's in the install folder? Or do I just make a regular shortcut and then call it .lnk in the batch file?Think I've tried it both ways, and no luck yet...thanks for your help
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