Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a batch file set to load up when the Windows XP command line (cmd.exe) starts (using the registry key Command Processor as detailed).

Unexpectedly, the batch file only runs under certain conditions, based on how the command line is started.

If the command line is started from Start|All Programs|Accessories|Command Prompt, the batch file runs.

If the command line is started from Start|Run|cmd or Start|Run|cmd.exe or via a ssh session through WinSSHD, the batch file does not run.

Is there a way to make the autorun work in all cases?

share|improve this question
    
Which of the linked solution(s) did you try? –  Ƭᴇcʜιᴇ007 Apr 19 '11 at 23:37
    
And is Start|Run picking up a different cmd.exe? –  Rhys Gibson Apr 19 '11 at 23:40
    
"This works a treat if the command line is started from the command line executable..." - are you referring to command.com? –  w3d Apr 20 '11 at 7:27
    
@techie007 I linked to the exact solution. –  Noel Apr 20 '11 at 17:34
    
@Rhys & w3d I rephrased the question, hopefully the edit answers your questions. Not using command.com –  Noel Apr 20 '11 at 17:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.