Jump to content

Recommended Posts

Posted

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 PowerToy

COPY "%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 Hacker

XCOPY /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 :rolleyes: 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 :D


Posted

COPY "%systemdrive%\install\TweakUI\Tweak UI.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\Tweak UI.lnk"

should be

COPY "%systemdrive%\install\TweakUI\Tweak UI.lnk" "C:\Documents and Settings\All Users\Start Menu\Programs\"

Posted

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 :)

Posted

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 :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...