Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to create shortcut by using cmd

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-07-2009
Member
 
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.

Reply With Quote
  #2  
Old 20-07-2009
Member
 
Join Date: May 2008
Posts: 3,312
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.
Reply With Quote
  #3  
Old 20-07-2009
Member
 
Join Date: Apr 2008
Posts: 4,641
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.
Reply With Quote
  #4  
Old 20-07-2009
Member
 
Join Date: May 2008
Posts: 4,564
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to create shortcut by using cmd"
Thread Thread Starter Forum Replies Last Post
How to Create a application shortcut ambrishbhatia Windows Software 1 08-03-2012 02:26 AM
Create the shortcut to Flip3D Felix46 Windows Software 3 13-11-2009 05:15 PM
Can't create desktop shortcut....help Ebenezer Operating Systems 2 20-04-2009 03:46 PM
How to Create Website Shortcut on Desktop Itronix Customize Desktop 2 08-04-2009 05:42 PM
Unable to create a shortcut Rhys Customize Desktop 2 30-03-2009 03:17 PM


All times are GMT +5.5. The time now is 08:45 PM.