Create shorcut :/
#1
Posted 05 July 2007 - 01:54 PM
C:\Archivos de programa\Windows Live\Messenger\msnmsgr.exe
how can do?
#2
Posted 05 July 2007 - 03:30 PM
http://wwwbzs.tu-graz.ac.at/~fleischh/comp...d/software.html (shortcut.exe)
or this: http://www.optimumx....nload/#Shortcut
hope that helps
#4
Posted 05 July 2007 - 04:56 PM
#5
Posted 06 July 2007 - 06:05 AM
you could use vbs scripts or those exe files
on a win98cd there is a shortcut.exe from ms but i dont have any lying around :x
Edit: just found this here @ msfn http://www.msfn.org/...showtopic=20355
and this: http://www.nirsoft.n...ils/nircmd.html
Quote
nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2
This post has been edited by BigRandalo: 06 July 2007 - 06:07 AM
#6
Posted 06 July 2007 - 11:05 AM
ckislam, on Jul 5 2007, 11:56 PM, said:
Attached is a batch file I have compiled and zipped, which will create desktop shortcuts to programs.
The file is simply called using the name of the app as a parameter.
In order to achieve the required result, there are some rules:
- The parameter must be an 'exe' file.
e.g. msnmsgr.exe (is allowed); WinRAR.hlp (is not allowed). - The file extension, however, must not be input.
e.g. msnmsgr (works); msnmsgr.exe (does not work) - The exe filename must not contain any spaces.
e.g. msnmsgr (works); NFO Viewer (does not work). - The file must reside somewhere within %ProgramFiles%.
MDTLink msnmsgr
This file has not been extensively tested, especially on non-English systems.
Attached File(s)
-
MDTLink.zip (72K)
Number of downloads: 19
#7
Posted 06 July 2007 - 02:48 PM
i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?
thanks
This post has been edited by ckislam: 06 July 2007 - 02:48 PM
#8
Posted 06 July 2007 - 03:27 PM
Copy that shortcut to where your script is located.
Then, use
copy "my shortcut.lnk" "x:\destination"
FYI
In order to create a shortcut, it must point to a valid location. Therefore, you have to create the shortcut beforehand. However, once you create it, it doesn't matter if the location is valid or not. And you can copy it wherever you want and it will still point to the same location.
All shortcuts have the extension .lnk although you can't see it.
#9
Posted 06 July 2007 - 09:29 PM
ckislam, on Jul 6 2007, 09:48 PM, said:
i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?
thanks
There are very many, (several from myself), posts throughout this forum showing the syntax for this method of shortcut creation. As a proof of concept, I have written a batch file which creates and runs the appropriate file for you.
The file I have written is far too complex for the majority of users and for that reason it's coding has been protected from view by compiling it to an exe. The complexity is due to the way it has to be able to work with a simple input parameter. Unfortunately showing the coding of it will most certainly confuse more people than it will help.
Your file will not need to be complex like mine, if you do not wish to use my file then all you need to do is search the forums for the examples already given, digest the information and implement it yourself.
#11
Posted 07 July 2007 - 12:22 AM
ckislam, on Jul 6 2007, 02:48 PM, said:
i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?
thanks
If you really want to do this by typing out commands in the console, then just run these commands one by one:
echo > s.vbs set Ws = WScript.CreateObject("WScript.Shell")
echo >>s.vbs set Os = Ws.CreateShortcut("%UserProfile%\Desktop\Messenger.lnk")
echo >>s.vbs Os.TargetPath = "%ProgramFiles%\Windows Live\Messenger\Msnmsgr.exe"
echo >>s.vbs Os.WorkingDirectory = "%ProgramFiles%\Windows Live\Messenger"
echo >>s.vbs Os.Save
echo.>>s.vbs
s
I suppose the commands are pretty self-explanatory. The CreateShortcut line is the full path to the shortcut you want to create, TargetPath is the full path of the program, and WorkingDirectory line is required for some programs to launch properly. Windows Live Messenger however doesn't require this line and you can skip it. The shortcut will be created when you type "s" and press enter.
This post has been edited by [deXter]: 07 July 2007 - 12:23 AM
#12
Posted 07 July 2007 - 11:01 AM
Thats Great.. thanks a lot.. exactly what i was looking for.
do you know how to set the icon of the shortcut?
#13
Posted 07 July 2007 - 11:55 AM
echo >>s.vbs Os.IconLocation = "C:\Path to some icon\someicon.ico"
You can also set the other properties too, like for adding a hotkey, just add a line having Os.Hotkey = "CTRL+SHIFT+M" , and if you want a description add Os.Description = "Lets you have online conversations."
#15
Posted 07 July 2007 - 01:14 PM
- ← remove windows media player 9 from xp sp2?
- Application Installs
- switchless/unattended + custom install settings →



Help
Back to top









