D
David Winfrey
I wanted a batch file to run when I started the command shell,
so I added to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
a new string, AutoRun="d:\usr\home\cmdsetup.bat".
It worked perfectly, until I ran a program that used spawn()
to call another program. In a loop. A long loop. And at
every iteration of that long loop, my cmdsetup.bat got
executed.
Is there some way (short of upgrading to Win98) to set up an AutoRun
that will execute only when the shell is started by clicking on the
desktop shell icon, and NOT when the shell is run from inside some
other program?
so I added to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
a new string, AutoRun="d:\usr\home\cmdsetup.bat".
It worked perfectly, until I ran a program that used spawn()
to call another program. In a loop. A long loop. And at
every iteration of that long loop, my cmdsetup.bat got
executed.
Is there some way (short of upgrading to Win98) to set up an AutoRun
that will execute only when the shell is started by clicking on the
desktop shell icon, and NOT when the shell is run from inside some
other program?