Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Problem with CMD and BAT

Reply
Thread Tools Display Modes

Problem with CMD and BAT

 
 
Robert Fuchs
Guest
Posts: n/a

 
      10-17-2008
Hi,

on my Vista Ultimate SP1 I have the problem that I can't run batches by
double-clicking in Explorer.
The same problem is with shortcuts to batches.
Instead of executing the batch, a cmd.exe console window is opened - that's
it.
No error message, nothing.
I also don't find a place where I could fix it.

thanks, Robert

 
Reply With Quote
 
 
 
 
Salvador Manaois III
Guest
Posts: n/a

 
      10-17-2008
Possibly a malware which messed up your .bat and .cmd file association. You
can try to reset the association from the command prompt by running the
following:

assoc .bat=batfile
assoc .cmd=cmdfile

On the following registry keys:

HKEY_CLASSES_ROOT\cmdfile\shell\open\command
HKLM\SOFTWARE\Classes\batfile\shell\open\command

verify that the Reg_Sz (default) value data is set to "%1" %*

--
Salvador Manaois III
MCSE MCSA CEH MCITP | Enterprise/Server Admin
Bytes & Badz : http://badzmanaois.blogspot.com


"Robert Fuchs" wrote:

> Hi,
>
> on my Vista Ultimate SP1 I have the problem that I can't run batches by
> double-clicking in Explorer.
> The same problem is with shortcuts to batches.
> Instead of executing the batch, a cmd.exe console window is opened - that's
> it.
> No error message, nothing.
> I also don't find a place where I could fix it.
>
> thanks, Robert
>
>

 
Reply With Quote
 
Robert Fuchs
Guest
Posts: n/a

 
      10-17-2008
> assoc .bat=batfile
> assoc .cmd=cmdfile


OK, done.

> On the following registry keys:
>
> HKEY_CLASSES_ROOT\cmdfile\shell\open\command
> HKLM\SOFTWARE\Classes\batfile\shell\open\command
>
> verify that the Reg_Sz (default) value data is set to "%1" %*


verified, everything is ok.
BTW, shell\runas is set to %SystemRoot%\System32\cmd.exe /C "%1" %*

But it still does not work.

Any more ideas?

regards, Robert

 
Reply With Quote
 
Not Even Me
Guest
Posts: n/a

 
      10-19-2008
depending on what you are trying to do, you might need to make the cmd
window and/or bat file run as admin
in the shortcut properties>advanced

"Robert Fuchs" <> wrote in message
news:...
>> assoc .bat=batfile
>> assoc .cmd=cmdfile

>
> OK, done.
>
>> On the following registry keys:
>>
>> HKEY_CLASSES_ROOT\cmdfile\shell\open\command
>> HKLM\SOFTWARE\Classes\batfile\shell\open\command
>>
>> verify that the Reg_Sz (default) value data is set to "%1" %*

>
> verified, everything is ok.
> BTW, shell\runas is set to %SystemRoot%\System32\cmd.exe /C "%1" %*
>
> But it still does not work.
>
> Any more ideas?
>
> regards, Robert
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-select problem in Windows Explorer BIG PROBLEM!!!!!! Jim Hansen Windows Vista General Discussion 3 12-17-2007 01:09 AM
Generic McAfee Problem Message in Vista Problem Reports cyberbuff53 Windows Vista Performance 0 12-01-2007 12:55 PM
fixed unable to delete email problem, now I have new problem j2 Windows Vista Mail 19 03-30-2007 01:25 AM
audio problem with my sony vaio laptop and x64 problem alex Windows Vista Hardware 1 07-14-2006 02:32 PM
Vista Upgrade Problem - Windows Explorer Loop problem Steve S Windows Vista Installation 0 06-27-2006 03:15 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59