PDA

View Full Version : Batch Programs


luckyspin956
12-04-2006, 9:21 AM
The search path is an important aspect of enhancing the power of batch
programs. Explain the process of storing the current search path in a batch
program. What is the command syntax and how do you update the search path?

Ski52
12-04-2006, 11:03 AM
Homework time again???

ThRoNkA
12-04-2006, 12:47 PM
It is your operators such as > and < input and output. They pass it to a file example: this is not a search for a dir entry to find something named windows.com "dir win*.com > saved.txt"

edit: or you can be a dummy like me and not read right!
its like this a search path is path=c:\whatever set in the autoexec.bat
With this if your, example, you want to run win.com and its located in c:\windows
you could type win and it would search the paths first and execute the first one find in the directories.

If its not found in the search, it will come back with not finding the command because it will be in the root directory. Now if you chance to windows by cd \windows or whatever the directory is and execute that file, it will run as you are in the directory.. search goes like this "1: root of the directory you are in. 2: the path variable in order"

Win2Kuser
12-04-2006, 1:24 PM
Here you go, this (http://www.ss64.com/nt/path.html) should just about cover it...