Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 – w3dk 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 – Noel Apr 20 '11 at 17:35

Your Answer


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

Browse other questions tagged or ask your own question.