windows 2008 - activating batch file

  • Thread starter Thread starter IT STAFF
  • Start date Start date
I

IT STAFF

Guest
Enterprise 2008 SP1

I created a batch file, but unable to execute (by clicking) and it force the
batch file open in notepad.

How can i run a batch file ?
 
Re: windows 2008 - activating batch file


"IT STAFF" <jkklim@hotmail.com> wrote in message
news:%237E6MTn$IHA.3756@TK2MSFTNGP03.phx.gbl...
> Enterprise 2008 SP1
>
> I created a batch file, but unable to execute (by clicking) and it force
> the batch file open in notepad.
>
> How can i run a batch file ?


Try this:
1. Open a Command Prompt.
2. Navigate to the folder where the batch file resides.
3. Type these commands:
- dir{Enter}
(Report the full name of the batch file)
- "xxx.bat"{Enter}
(substitute xxx with the real name of the batch file and report the
result)
- notepad xxx.bat{Enter}
(Copy & paste the batch file lines into your reply)
By the time you have finished this little exercise you will probably
know what's wrong.
4. Type the
 
Re: windows 2008 - activating batch file

Do you have the view set to show file extension?
If not, you probably have a file named something like this: batFile.bat.txt

A txt file will always open in Notepad.

"IT STAFF" <jkklim@hotmail.com> wrote in message
news:%237E6MTn$IHA.3756@TK2MSFTNGP03.phx.gbl...
> Enterprise 2008 SP1
>
> I created a batch file, but unable to execute (by clicking) and it force
> the batch file open in notepad.
>
> How can i run a batch file ?
>
 
Back
Top