need a script or something..

S

sektor

first of all, hello :)

i have a bunch of portable apps that are very usefull and i wanted to do one
thing but dunno how. well, if possible i would like to make some script or
something that would add icons/shortcuts of those apps to start menu. since
those apps dont install they dont put icons and making shortcuts for
15-20(or more) apps (even if rarily) is a pain.. and i can learn something
new :)

thanks in advance
 
P

Pegasus \(MVP\)

sektor said:
first of all, hello :)

i have a bunch of portable apps that are very usefull and i wanted to do
one thing but dunno how. well, if possible i would like to make some
script or something that would add icons/shortcuts of those apps to start
menu. since those apps dont install they dont put icons and making
shortcuts for 15-20(or more) apps (even if rarily) is a pain.. and i can
learn something new :)

thanks in advance

Yes, it is possible to write a script to generate a shortcut. You will, of
course, need to tell the script the name and location of your application,
e.g. "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe". This is
likely to take longer than creating a shortcut manually - unless you have
lots of machines that you wish to treat in this way.
 
S

sektor

Yes, it is possible to write a script to generate a shortcut. You will, of
course, need to tell the script the name and location of your application,
e.g. "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe". This is
likely to take longer than creating a shortcut manually - unless you have
lots of machines that you wish to treat in this way.

yes i was thinking it would be something like that and yes it would take
longer to make script but i am making it only once and who knows how many
times i will use it..
what i really need is example, a syntax, few lines of the script so i can
duplicate it for files i need
also in what form should it be saved? .bat, .reg or something?
 
S

Shenan Stanley

sektor said:
first of all, hello :)

i have a bunch of portable apps that are very usefull and i wanted
to do one thing but dunno how. well, if possible i would like to
make some script or something that would add icons/shortcuts of
those apps to start menu. since those apps dont install they dont
put icons and making shortcuts for 15-20(or more) apps (even if
rarily) is a pain.. and i can learn something new :)

thanks in advance

http://www.computing.net/answers/windows-xp/script-to-create-shortcut/168582.html

The easy way is the last suggestion.

Make your shortcuts manually once (storing them in a folder on the thumb
drive in the way you want them in the start menu), make a batch script that
will copy said shortcuts to the proper place when you run it. Done.

"%USERPROFILE%\Start Menu\Programs\"
 
P

Pegasus \(MVP\)

sektor said:
yes i was thinking it would be something like that and yes it would take
longer to make script but i am making it only once and who knows how many
times i will use it..
what i really need is example, a syntax, few lines of the script so i can
duplicate it for files i need
also in what form should it be saved? .bat, .reg or something?

Here is a basic script that will do it for you. Lots of work, little if any
benefit . . .
Set ObjShell = CreateObject("WScript.Shell")
path = inputbox("Enter the application folder name", "Folder Name")
target = inputbox("Enter the name of the executable", "Executable")
name = inputbox("Enter a name for the shortcut", "Shortcut name")
linkfile = inputbox("Enter a drive, folder and name for the shortcut", "Link
Name")

'Set objShortcut =ObjShell.CreateShortcut("D:\Acrobat.lnk")
'objShortcut.TargetPath = "C:\Program Files\Adobe\Acrobat
7.0\Reader\AcroRd32.exe"
'objShortcut.Description = "Adobe Acrobat"
'objShortcut.arguments = ""

Set objShortcut =ObjShell.CreateShortcut(Linkfile)
objShortcut.TargetPath = path & "\" & target
objShortcut.Description = name
objShortcut.Save

Instructions:
1. Copy & paste the code into c:\Windows\CreateShortcut.vbs
2. Create a desktop shortcut that points to c:\Windows\CreateShortcut.vbs.
3. Double-click this shortcut.
4. Enter the requested information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top