Computing.Net > Forums > Windows XP > Batch file to read an ini & more...

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 file to read an ini & more...

Reply to Message Icon

Name: mousie617
Date: February 16, 2004 at 11:58:02 Pacific
OS: WinXP
CPU/Ram: P3 800mhz
Comment:

What I need to do is create a batch file to read the %HOMEDRIVE%\windows.ini file, look for the entry LAUNCH=C:\UTILITIES\LAUNCH.exe and then change to that directory (also, there is a possibility that the path may be located in a deeper subfolder or different drive letter).

So first, I need to look at the drive letter (in this case - C:), then change to it. Then I need to look at the path, strip off the .exe and then CD to that. Once I'm there, I'm going to create zip files for backup.

Thanks for the help!
David




Sponsored Link
Ads by Google

Response Number 1
Name: rick
Date: February 16, 2004 at 12:30:00 Pacific
Reply:

try the programming forum,,, over there to the left.

you need a script, getting complicated for a simple batch file.


0

Response Number 2
Name: mousie617
Date: February 17, 2004 at 05:21:03 Pacific
Reply:

Thanks Rick. I know that it can be done in a batch file, but I'll also try the programming forum.

- David


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 Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch file to read an ini & more...

convert a batch file to exe www.computing.net/answers/windows-xp/convert-a-batch-file-to-exe/53610.html

batch file to connect ... www.computing.net/answers/windows-xp/batch-file-to-connect-/152750.html

Win XP batch to read text file www.computing.net/answers/windows-xp/win-xp-batch-to-read-text-file/166182.html