Computing.Net > Forums > Windows 95/98 > Batch scripting

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 scripting

Reply to Message Icon

Name: Nathan
Date: March 20, 2002 at 06:36:25 Pacific
Comment:

Hi,
I need to know how to make a batch file that installs itself and then starts at startup (systray). I would like to use the batch file on my startup to map LPT1 back to the printer closest to me because often during the day I print to other locations on our network, and forget to change it back.



Sponsored Link
Ads by Google

Response Number 1
Name: chappie
Date: March 20, 2002 at 08:39:45 Pacific
Reply:

Hi, it is fairly easy.
First up when the LPT1 is mapped how you want it open 'regedit' and search for LPT1.

It should be in the following key:
[HKEY_LOCAL_MACHINE\Enum\BIOS\]

mine is in [HKEY_LOCAL_MACHINE\Enum\BIOS\*PNP0401]

highlight the key and click "Registry" / "Export".
Save it as "MapLPT.reg" to where you can find it.

Create a bat file that calls this one or put the following line intoo the c:\Autoexec.bat file. It will run on every startup then.
----
c:\windows\regedit.exe /s c:\Programs\MapLPT.reg

----
when copying the line, include the blank line as some registry files will not merge if the extra carrige return is missing.
Without the "c:\windows\regedit.exe /s" the file will not be merged. /s means 'silent' mode
HTH

c:\windows\regedit.exe /s c:\Programs\Popcap.reg


0
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 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Batch scripting

Dos batch script www.computing.net/answers/windows-95/dos-batch-script/140081.html

Batch Script and Windows 98 www.computing.net/answers/windows-95/batch-script-and-windows-98/138611.html

Program to write Batch/Script files www.computing.net/answers/windows-95/program-to-write-batchscript-files/118719.html