Results 1 to 4 of 4

Thread: [RESOLVED] Have command line look in folder

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2006
    Location
    Toronto, ON
    Posts
    1,093

    Resolved [RESOLVED] Have command line look in folder

    When I run a program that's in the system folder, such as regsvr32 or the like, from the command window, it doesn't mater which folder I'm in, it will always go to the system folder and run the program from there.

    However, when I want to run a program that was deployed with Visual Studio, such as gacutil or the like, it won't look in the Visual Studio folder to find the program and I have to copy it to either the system folder or the local folder in order for it to run.

    I recall from somewhere that there's some setting somewhere that you can enter in various paths on your machine that you want the command window to look in to grab programs to run them no matter which folder you're in in the command window. Does anyone know where to set this?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Have command line look in folder

    I think you're looking for the environment variable "PATH". Right click My Computer, properties, advanced, environment variables button. Find the path variable there and you should see a semi-colon delimited list of paths. You can add yours there.

    Is that what you meant?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2006
    Location
    Toronto, ON
    Posts
    1,093

    Re: Have command line look in folder

    Exactly what I meant.

    Thank you so much.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Have command line look in folder

    Well that's a relief, I was apprehensive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width