Jump to content

command line for making a schortcut ?


Recommended Posts

Yup, ive got mIRC working for an unatended install (even regged ;) ) but its is just sitting in the folder c:\....\mIRC

Is there a command line to copy a shortcut to my desktop?

The windows command for the CP -l command for Linux (Gentoo) ;)

Greetings Anon5710

Link to comment
Share on other sites


I did try to google, but it seems that i couldn't match the keywords.... dow...

np. sometimes it helps to think about the wording for a minute, then search. for me, web searching was a difficult art to master because i have to change the way i would word things to the way it should be worded, or what not. i don't always think in the same way other people do. B)

Link to comment
Share on other sites

VBScript will create a shortcut for you from the command line. All you have to do is execute the script.

Here is an example of how to create a shortcut for Windows Explorer on the Desktop.

'Create Windows Explorer Desktop icon

Set Shell = CreateObject("WScript.Shell")

DesktopPath = Shell.SpecialFolders("AllUsersDesktop")

Set link = Shell.CreateShortcut(DesktopPath & "\Explorer.lnk")

link.Arguments = "/n,/e,c:\"

link.Description = "Explorer link"

link.HotKey = "CTRL+ALT+SHIFT+E"

link.IconLocation = "%SystemRoot%\explorer.exe"

link.TargetPath = "%SystemRoot%\explorer.exe"

link.WindowStyle = 1

link.WorkingDirectory = "%HOMEDRIVE%%HOMEPATH%"

link.Save

tguy

Link to comment
Share on other sites

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...