Execute a script

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.

I have a script "init.bat". I need to execute this script when I logon into
my system.

This script is in a folder called bat and I have in my Path.

How I have to do to execute this script????
Thanks
 
In
Davisoski said:
Hi.

I have a script "init.bat". I need to execute this script when I
logon into my system.

This script is in a folder called bat and I have in my Path.

How I have to do to execute this script????
Thanks

Add it to your startup folder in Windows, if you want it to run when you log
in (and you aren't on a domain).
 
You can initiate it and see if it executes properly using the Command Prompt.
Start>All Programs>Accessories>Command Prompt>navigate to the file.
If it works, you can put it in your startup.
BTW: The simplest and quickest way is to use Start>Search>Files and folders
and type the name init.bat. When it lists it, just double leftclick it and
see
what enfolds.
DOS Batch File Tutorial (in XP)
http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html
 
Place a shortcut to init.bat in
%allusersprofile%\Start Menu\Programs\Startup
or
%homepath%\Start Menu\Programs\Startup

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

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

Back
Top