Page 1 of 1

Creating a Windows Command Line Shortcuts

Posted: Sun Sep 17, 2006 3:15 pm
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

Re:Creating a Windows Command Line Shortcuts

Posted: Sun Sep 17, 2006 3:39 pm
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

Re:Creating a Windows Command Line Shortcuts

Posted: Sun Sep 17, 2006 3:40 pm
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

Re:Creating a Windows Command Line Shortcuts

Posted: Sun Sep 17, 2006 4:02 pm
by ahelg
That worked just the way I wanted. Thanks.