1

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?

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

0

You must log in to answer this question.

Browse other questions tagged .