help adding to environmental variables

S

scott

help adding to environmental variables


Hi,

Im trying to get "mode com1:9600,n,1" to apply at machine start up using the
Environmental Variables. It looks straight forward but it aint working.

1. i enter the name "printer"
2. i enter the variable"mode com1:9600,n,8,1"
3. restart the machine
4. launch command prompt and enter "mode" but setting for com1 still at
default.

Can someone please explain where im going wrong ?

Thanks for any help
Scott.
 
A

Alphonse

Scott,
The Variable Name is not a personal name, but the command, as in set or path
or temp...
Try typing mode in the Variable Name field and com1:9600,n,1 in the
Variable Value field

Post back, even of it works.
 
S

scott

thanks for reply. I have tried the following:


NAME....................................VARIABLE

printer mode com1:9600,n,8,1
mode com1:9600,n,8,1
mode com1 :9600,n,8,1
mode com1: 9600,n,8,1
mode com1:9600,n,8,1

ahhhhhhhh - this is annoying.

Thanks for any info.
Scott.
 
A

Alphonse

Why don't you create a batch file and run it in the Startup menu? Same
effect as the Autoexec, but gets executed after w2k boots, therefore over
riding Windows' default settings.
 
S

scott

Hi,

That works ok in 2000 but would not run on XP for some reason - hence i
started exploring Environment Varibles.

If anyone knows how to get the sytnax corerct please post here.

Thanks for everyones time.
Scott.
 
A

Alphonse

Sorry. The assumption was that considering this being a w2k ng...

The correct syntax at the DOS prompt is
mode com1:9600,n,8,1

afterwards, typing
mode com1
should confirm it.

Good luck.

Hi,

That works ok in 2000 but would not run on XP for some reason - hence i
started exploring Environment Varibles.

If anyone knows how to get the sytnax corerct please post here.

Thanks for everyones time.
Scott.
 
G

Gary Smith

scott said:
That works ok in 2000 but would not run on XP for some reason - hence i
started exploring Environment Varibles.
If anyone knows how to get the sytnax corerct please post here.

Mode does not set an environment variable, and nothing you do to the
environment is going to affect the mode setting. You may be able to fix
the setting you want by working within Networking and Dial-up Connections
on the control panel, but the batch file is peobably the simplest
solution. If your batch file worked in Win2K but doesn't work in XP, then
there's something system-specific about it. Post the contents an let us
have a look.

Of course, you'll probably get better answers if you post your question in
a group that deals with XP.
 
S

scott

Hi,

Thanks for the reply and sorry about incorrect newsgroup posting .... force
of habit.

Thanks for your time.
Scott.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top