Thursday, August 23, 2007

Shortcuts in XP

Create a new shortcut:

Rightclick the desktop or any folder and select New/Shortcut from the context menu.
On the shortcut dialogue box enter the location of the file you wish the shortcut to run as well as any commandline args and click Next.
On the next screen enter the name you would like displayed underneath the shortcut and click Finish.




Change a shortcut's icon.

Right-click the shortcut and select Properties from the context menu.
On the shortcut's Properties dialogue box click the Change Icon button.[
The Change Icon dialogue box will appear and usually will be pointed to the file

Quote:

%SystemRoot%\system32\SHELL32.dll


.
NOTE: SHELL32.dll has a lot of nice standard windows icons in it and if you use one of them and later on change your theme, the shortcut's icon will change automatically as well. If you don't like any of those icons then browse around the filesystem and you will quickly discover that nearly every dll file in the harddrive has an icon you can choose and some have more than one. If you have a programming package of any kind it will usually contain a large number of icons you may use as well.
After selecting the icon you like click OK to close that dialogue and click OK to close the shortcut's dialogue box.




Create Shutdown shortcut.

Create a new shortcut.
Enter the following for the location:

Quote:

%windir%\system32\Shutdown.exe -s -t 00



Set the name to something descriptive like, I don't know... Shutdown. and click Finish.
Change the icon if you would like, otherwise it will use the icon reserved for dll files. I used the red button from SHELL32.dll which is used on the Start Menu to shut the system down.



Create Restart shortcut.

Create a new shortcut.
Enter the following for the location:

Quote:

%windir%\system32\Shutdown.exe -r -t 00



Set the name to something like Restart and click Finish.
Change the icon if you would like otherwise it will use the icon reserved for dll files. I used the blue button from SHELL32.dll which is used on the Start Menu to restart the system down.



Create Lock Workstation shortcut.

Create a new shortcut.
Enter the following for the location:

Quote:

%windir%\system32\Rundll32.exe User32.dll,LockWorkStation



Set the name to something like Lock and click Finish.
Change the icon if you would like, otherwise it will use the icon reserved for dll files. I used the yellow button from SHELL32.dll which is used on the Start Menu to lock the desktop.



Create clear memory shortcut.

Create a new shortcut.
Enter the following for the location:

Quote:

%SystemRoot%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks



Set the name to something Clearmem and click finish.
Change the icon if you would like otherwise it will use the icon reserved for dll files.

No comments:


AddThis Feed Button