Computing.Net > Forums > Disk Operating System > Batch Files and path

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Files and path

Reply to Message Icon

Name: lumberingox
Date: July 5, 2007 at 15:34:39 Pacific
OS: Freedos 1.0
CPU/Ram: Pent 166
Product: toshiba
Comment:

I was going to set up a directory for batch files. If I wish to add this to my path statement in autoexec, can I just add it to the end of the current path, or should I add another path. How do I separate the directories in the path statements if they are in one line.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 5, 2007 at 17:21:13 Pacific
Reply:

Only ONE path.

Directories separated by semicolon. [;]

path=c:\util;c:\tc\bin;c:\QB45;



=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: Dan Penny
Date: July 18, 2007 at 22:13:20 Pacific
Reply:

To add, the path statement has a max length of 127 characters. If you need more, add a new path statement which starts;
path %path%;

EXAMPLE
=======
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;\;C:\WINDOWS\SYSTEM;D:;D:\COMMAND;D:\BATCH;D:\GHOST;D:\TOOLBOX;E:;F:\PKWARE;C:\WINDOWS\SYSTEM\WBEM
::
path %path%;G:\WIN98RK;D:\98SE\TOOLS\OLDMSDOS\

The %path% incorporates the full "old" path into the "new" path statement.

NOTE; Keep in mind these forums will truncate things like the above, but you should get the idea.

It's a good day when you learn something


0

Response Number 3
Name: Mechanix2Go
Date: July 19, 2007 at 00:45:25 Pacific
Reply:

Hi Dan,

Looks like it did NOT get truncated. Did you paste that in?


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 4
Name: Dan Penny
Date: July 19, 2007 at 10:22:23 Pacific
Reply:

Hi M2G.

Yes, pasted. I've seen some posts go in fully, but I figured this one would get wrapped. Well, actually, it did. The line following the space after the first "PATH" word was dropped to a second line.
It's a good day when you learn something


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch Files and path

Batch files and system memory? www.computing.net/answers/dos/batch-files-and-system-memory/2820.html

Read batch file and write in a Text www.computing.net/answers/dos/read-batch-file-and-write-in-a-text/16653.html

Batch files date and time www.computing.net/answers/dos/batch-files-date-and-time/10101.html