View Single Post
Old 08-14-2006, 01:20 AM   #6 (permalink)
office politics
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

Quote:
Originally posted by jcortes
a batch file is not that hard to make expecially to make it open a program all you do it ud CD to change the directory to the folder that the exe is in then once you are in that folder say C:\windows\sytem32\> you then run the command of the exe simly like this C\windows\system32\>cmd.exe and it will run
The path statement provides additional filepaths to search through when attempting to run an exe.

After searching through the working directory, windows searches for the exe in the directories listed in the PATH environmental variable.

Type path in a cmd.exe window to view the directories.
Type set path=c:\dir1;c:\dir2 to change the path variable.
Type set path=%path%;C:\dir1 to append to the path statement.

By default xp's system32 and windows directories are added to the path statement. So you can execute cmd.exe from any working directory.
office politics is offline