Creating a Windows Command Line Shortcuts

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
ahelg

Creating a Windows Command Line Shortcuts

Post by ahelg »

I just downloaded FASM but I find it irritating that I have to type in the directory that fasm is in when using it. Is there some way I can create a "shortcut" so that I can just type fasm no matter what directory I am in?

I'm using Windows XP
earlz

Re:Creating a Windows Command Line Shortcuts

Post by earlz »

all you have to do is set fasm to your path
right click on my computer..
then click properties..
then click the advanced tab
then click enviromental variables
then look for a variable called Path under system variables and click on it
then add to the variable value(at the end of the string) ;C:\PATH_TO_FASM;
then click ok

btw you'll have to reopen consoles for this to take effect

and then you should just be able to type "fasm" and it work
Kemp

Re:Creating a Windows Command Line Shortcuts

Post by Kemp »

Adding its directory to your PATH environment variable should work. At the command line or in a batch file you can do something like

Code: Select all

path = %PATH%;newdir
That will only be temporary. It can be made permanent through the Advanced tab on your System Properties dialog.

Edit:
You got there first ;D
ahelg

Re:Creating a Windows Command Line Shortcuts

Post by ahelg »

That worked just the way I wanted. Thanks.
Post Reply