Results 1 to 4 of 4

Thread: How to create shortcut by using cmd

  1. #1
    Join Date
    Feb 2009
    Posts
    55

    How to create shortcut by using cmd

    Everyone is familiar with the windows command prompt tool. I want to know the commands by which I can create shortcuts directly on the desktop. What are the commands that can create a shortcut on the desktop. What are the other most useful commands that I can try in cmd. And other I want to know that the same is possible by notepade also. Please list some command lines and the procedure to create a shortcut file from notepad. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re: How to create shortcut by using cmd

    I will list you some solution that is used at system level in windows. By using the runas command you can create a short cut directly on the desktop. To do this right click on desktop and select new > shortcut. Then type the below locations :
    • runas /user:ComputerName\administrator cmd - It is used to see administrative credentials
    • runas /user:ComputerName\administrator "mmc %windir%\system32\compmgmt.msc" -- Use to manage a computer by administrative credentials.

    When you will run the shortcut from the desktop then it will ask for your windows administrative password.

  3. #3
    Join Date
    Apr 2008
    Posts
    4,642

    Re: How to create shortcut by using cmd

    To create the shortcut for your desired application via command prompt just follow the listed instructions. Shortcuts are .ink files. So if you create a ink file of any application it act as a application launcher. The command for this is - shortcut -t "c:\program files\counterstrike\cs.exe" -n "counterstrike.lnk" -i "c:\program files\counterstrikeicon\icon1.ico" -x 0 -d "d:\cs\image" .See the command carefully. The first part it the location of software and then the second part you assign an icon image to the application which is located in the d drive.

  4. #4
    Join Date
    May 2008
    Posts
    4,570

    Re: How to create shortcut by using cmd

    There are some command utilities in cmd that is useful for multiple purposes. Like shutting down the system. Just type shutdown -s. In the same way -a at the ends means to stop shutdown, -r means to restart, -m\\computername is to shut down a remote computer and -l to log off the same. For more detail just type shutdown /? and hit enter. Then you can use sfc /scannow for scanning errors in windows and chkdsk to repair a hardrive. In note pad you will need to give the location of application and save the file with extension .exe.

Similar Threads

  1. How to Create a application shortcut
    By ambrishbhatia in forum Windows Software
    Replies: 1
    Last Post: 08-03-2012, 03:26 AM
  2. Create the shortcut to Flip3D
    By Felix46 in forum Windows Software
    Replies: 3
    Last Post: 13-11-2009, 06:15 PM
  3. Can't create desktop shortcut....help
    By Ebenezer in forum Operating Systems
    Replies: 2
    Last Post: 20-04-2009, 03:46 PM
  4. How to Create Website Shortcut on Desktop
    By Itronix in forum Customize Desktop
    Replies: 2
    Last Post: 08-04-2009, 05:42 PM
  5. Unable to create a shortcut
    By Rhys in forum Customize Desktop
    Replies: 2
    Last Post: 30-03-2009, 03:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,636,955.00199 seconds with 17 queries