Windows Command Line

Discussion in 'Software' started by phenomx3, 26 Oct 2004.

  1. phenomx3

    phenomx3 What's a Dremel?

    Joined:
    4 Oct 2003
    Posts:
    335
    Likes Received:
    1
    I have command line application but to run it you need to access it from a command prompt. Can I create a shortcut so I click it and the program is accessed from the command prompt?

    Thanks
     
  2. buzzy

    buzzy What's a Dremel?

    Joined:
    27 Dec 2003
    Posts:
    211
    Likes Received:
    1
    Yeah, you can create a shortcut that runs CMD.EXE (the command prompt) and runs a program inside the command window.

    Right click on the desktop -> New -> Shortcut. The shortcut target should be:

    C:\Windows\System32\CMD.EXE /k C:\myprog\program.exe

    Cheers
    Buzzy
     
  3. phenomx3

    phenomx3 What's a Dremel?

    Joined:
    4 Oct 2003
    Posts:
    335
    Likes Received:
    1
    That is exactly it! Thanks. I have searched for that solution months. Thanks so much! I was thinking I would have to decompile the program and do some good old 'phenom' coding on it. Fortunately it never came down to that so thanks again
     
  4. buzzy

    buzzy What's a Dremel?

    Joined:
    27 Dec 2003
    Posts:
    211
    Likes Received:
    1
    no worries :)
     
  5. phenomx3

    phenomx3 What's a Dremel?

    Joined:
    4 Oct 2003
    Posts:
    335
    Likes Received:
    1
    Another q lol. In DOS something like Program Files is written as Progr~ or similar. How would I know what a directory like ' Phenoms Folder 2004' would be, i.e. what is therule.

    Thanks!
     
  6. trigger

    trigger Procrastinator

    Joined:
    22 Mar 2004
    Posts:
    1,106
    Likes Received:
    37
    First six letters, then a tilde and a number, so:

    Program Files -> progra~1
    My Documents - > mydocu~1
    Phenoms Folder 2004 -> phenom~1
     
  7. mushky

    mushky gimme snails

    Joined:
    24 Mar 2003
    Posts:
    5,755
    Likes Received:
    3
    8.3 digit DOS compatible filenames.

    If you also had Phenoms Folder 2005 (or anything wiht phenom at the start but coming after alphanumerically), it would be phenom~2
     
Tags:

Share This Page