Start command format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jomtones
    New Member
    • Nov 2006
    • 1

    #1

    Start command format

    Hey, dumb question - trying to write a short command-line script to launch a few programs using the Start command. Unfortunately one of them is in the "program files/" directory and I can't get it to launch by putting the path in quotes - Start just opens a CMD window with that title!

    How can I launch a file in the "program files/" directory? Thanks!
  • Colloid Snake
    New Member
    • Nov 2006
    • 144

    #2
    Originally posted by jomtones
    Hey, dumb question - trying to write a short command-line script to launch a few programs using the Start command. Unfortunately one of them is in the "program files/" directory and I can't get it to launch by putting the path in quotes - Start just opens a CMD window with that title!

    How can I launch a file in the "program files/" directory? Thanks!
    Have you tried
    [CODE]
    "C:/Progra~/whateverelsepat h"
    [\CODE]
    You can use the tilde as a filler after 6 chars in Windows, otherwise, try\ backwhacking\ the\ space.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #3
      Type in START /? for the full SP, but you need the /D switch where the path required is enclosed in double-quotes (").
      There doesn't seem to be a way of handling the situation of the actual filename containing spaces though.

      Comment

      Working...