Autostart a batch file

R

Rick

Hello folks, I'm hoping someone can help me here.

I am trying to autostart a batch file at system bootup. I'm using the
command shell so after bootup I successfully get a full Dos screen
with
C:\WINDOWS\system32

I created a component and added it to target designer which adds the
batch file to the directory. That part works. The file is there but I
don't know how to automatically invoke it.

When I created the component I added a RunOnce request to Resources. I
specified the name of the batch file in ValueName and the path (above)
under filepath. Perhaps its not possible to autostart a batch file
using the command shell but I think there must be a way.

Thanks in advance to anyone who can help me.
Regards,
Rick Eis
 
R

Rick Eis

Lynda, Thanks for your reply. I'll try %24% tomarrow but I have had success
with regular exe files like tweakui and even mspaint (Cseri) using %11%
(C:|WINDOWS\system32\) No problemo. But now I'm trying to start a batch
file at boot up not a program. I guess it should work. I can't see how a
different directory can make the difference. After all when I created the
component I decide where the files will be placed. Actually the files are
indeed being placed there correctly but I cannot get the runonce command to
run the batch file. Thanks.

Rick
 
H

Heidi Linda

I know you can do it, because my system's post-FBA config
is done with a batch file launched automagically. However,
I didn't do it with resources, I did it with a component
consisting purely of the batch file and this registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Run\Startup
with the value netset4.bat which is my file, located in c:
 
A

Andy Allred [MS]

Heidi,
What is your image using for the shell, though? I would think the Run keys
were only processed by the Explorer shell or if Explorer's dependencies were
on the system but using a different exe as the shell. I thought we had a
thread on this subject over a year ago but can't locate it right now.

Thank you.

--
Andy

This posting is provided "AS IS" with no warranties, and confers no
rights.
=====================================================
 

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