• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Command Line

npoe1

Senior member
Okay, I want to know if somebody knows how to launch a program from command line in Windows XP, where should I register the environmental variables and what is the syntax?

I do not want to move to the folder containing the program; neither starts the shell in that folder.
 
"Start" command. See helpfiles for more info.
"Runas" can also be used.
Environment variables are done with the "set" command.

I'm a little fuzzy on what exactly you are trying to do. Be specific.
 
I want to launch an executable, RomeTW from Rome: Total War, I often need to launch programs that are not in my Star menu and even some arguments so I want to run cmd.exe and from there launch programs without changing from folder.
 
Well, I already did that and one thing that went wrong was that I overwrite the original content of PATH, I wrote in the command line: set PATH c:\xxxxxx\xxxxx\xxxxx and overwrite all windows paths, so maybe this is something to tell. But unfortunately in someway it only work for that time if I close the command prompt it reverts to its original state, how do I do it permanent?
 
you want to append it to the path instead. you can go to control panel > system > advanced > environment variables and edit the PATH variable there. after that, new command windows will open with the new path.
 
Originally posted by: npoe1
Well, I already did that and one thing that went wrong was that I overwrite the original content of PATH, I wrote in the command line: set PATH c:\xxxxxx\xxxxx\xxxxx and overwrite all windows paths, so maybe this is something to tell. But unfortunately in someway it only work for that time if I close the command prompt it reverts to its original state, how do I do it permanent?

Control Panel / System / Advanced / Environment Variables.

You can set the PATH there.
 
Originally posted by: npoe1
I want to launch an executable, RomeTW from Rome: Total War, I often need to launch programs that are not in my Star menu and even some arguments so I want to run cmd.exe and from there launch programs without changing from folder.


Not sure if it applies to you or not but here is a nifty trick:

Use the GUI to browse to whatever executable you want right? Then do a start | run and drag the executable into the little text dropdown. It will prepoplulate with path and filename then you can tack on switches and arguments to your heart's content 🙂

Also, don't forget you can put folders in your favorites and choose to display favorites on the start menu.

Fastest computer users I know are ones that use BOTH gui and command line together.
 
Ok, Thanks guys I find it where you said and append the path "x:\xxxxxxxx\xxxxxxxxx\xxxxxx\" to the variable PATH preceded by a ';' and worked, just I needed to close and open a new Command Prompt.
 
Back
Top