Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Command Line Programs

Command Line Programs

Scheduled Pinned Locked Moved IT & Infrastructure
sysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Unsy
    wrote on last edited by
    #1

    Hi Guys Can anybody tell me how to get a program to run from the command line in windows regardless of what directory your in? (Like you can with Notepad, and Calc etc) I'm using Win XP Pro and Win Server 2003 Thanks :)

    If you notice this notice, you will notice that this notice is not worth noticing...

    L 1 Reply Last reply
    0
    • U Unsy

      Hi Guys Can anybody tell me how to get a program to run from the command line in windows regardless of what directory your in? (Like you can with Notepad, and Calc etc) I'm using Win XP Pro and Win Server 2003 Thanks :)

      If you notice this notice, you will notice that this notice is not worth noticing...

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, when given a command through a command line ("Command Prompt", "DOS Window", whatever they call it), Windows will look for an executable in the current directory, and it will scan the locations/folders named in the "system environment variable" named PATH, which you can set interactively by right-diving into "My Computer". It would include by default the standard places such as C:\Windows\system32 and that is how Notepad is found. you can prefix your paths to PATH and use a semi-colon to separate paths. BTW: it would be different for locating managed code DLL files, and for Java classes. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      U 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, when given a command through a command line ("Command Prompt", "DOS Window", whatever they call it), Windows will look for an executable in the current directory, and it will scan the locations/folders named in the "system environment variable" named PATH, which you can set interactively by right-diving into "My Computer". It would include by default the standard places such as C:\Windows\system32 and that is how Notepad is found. you can prefix your paths to PATH and use a semi-colon to separate paths. BTW: it would be different for locating managed code DLL files, and for Java classes. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        U Offline
        U Offline
        Unsy
        wrote on last edited by
        #3

        Just what I was after. Thanks Luc. :-D

        Huh? oh yeah... I knew that.. :oS

        L 1 Reply Last reply
        0
        • U Unsy

          Just what I was after. Thanks Luc. :-D

          Huh? oh yeah... I knew that.. :oS

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          you're welcome. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups