batch file in all users startup dir wont run ? (ok running manually)

  • Thread starter Thread starter scott
  • Start date Start date
S

scott

Hi,

I added a batch file with the following to C:\Documents and Settings\All
Users\Start Menu\Programs\Startup :

mode com1:9600,n,8,1

- when running the batch file manually by double clicking it works i.e i
load a command prompt and enter "mode" and see settings have changed
- when the batch file is added to STARTUP dir it does not run at login
(again i can tell from command prompt)
- this procress works ok from at least 2 other xp pro machines, im just
having a problem on 1.

Any idea why startup will not run this batch file (all batch files are
exactly the same) ?

Thanks for any information.
Scott.
 
Hi Scott,

Add it as an environmental variable under system. Control Panel/System
applet/advanced tab, click environmental variables towards the bottom. Add
to the system variables.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Windows
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone
 
Thanks for reply.

1. From ENVIROMENTAL VARIABLES
2. I select NEW under SYSTEM VARIABLES box
3. Enter VARIABLE NAME
4. Enter VARIABLE VALUE = mode com1:9600,n,8,1

At restart the com port variables have not changed.

1. I created a batch file
2. I select NEW under SYSTEM VARIABLES box
3. Enter VARIABLE NAME
4. Enter VARIABLE VALUE = c:\batch.bat

After restart the com port variables have not changed.

Am i missing somthing here ?

Thanks for your time.
Scott
 
Back
Top