+ Reply to Thread
Results 1 to 4 of 4

Thread: Making windows .exe call available in all folders

  1. #1
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Making windows .exe call available in all folders

    Can you make a .exe file available in all folders from the command line?

    Probably doesn't make a huge amoutn of sense!

    I'm doing some .NET learning and need to make a command line call to a .exe file in %windir%/Microsoft.Net/Framework/v2.0.50727 but including a file from a completely seperate folder.

    What I want to be able to do is in command line, navigate to the folder containing the file I need to use in the call and then type

    csc myfile.cs

    I'm sure this is possible, but can't remember how you do it. It's basically to make a .exe file globally available.

    Any ideas? Anyone understand what I'm asking?

  2. #2
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    If I grock in fullness here, ensure that your .exe file is in a folder referenced in the PATH environment variable; and the .NET folder should already be there.
    Wolffy
    .-- ----- ..-. ..-. -.--
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.

  3. #3
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Where would the PATH environment variable be?

    I think I kind of solved it. I was opening a normal command line window, rather than using the Visual Studio command line from VS Tools sub folder.

    If I open a VS command line csc is an available executable without having the reference the full path.

  4. #4
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    Oh yes, I use that window for everything, so it's just there when I need it.

    The Environment variables are found at Control Panel->System->Advanced->Environment Variables or by using the DOS SET command
    Wolffy
    .-- ----- ..-. ..-. -.--
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.

+ Reply to Thread

Similar Threads

  1. Replies: 7
    Last Post: September 2nd, 2010, 01:49 AM
  2. Replies: 4
    Last Post: April 5th, 2010, 12:15 AM
  3. Call Serverside Function from A Tag
    By noFriends in forum .NET Development
    Replies: 18
    Last Post: June 29th, 2009, 10:59 AM
  4. Windows Forms/VB.Net - Windows App + Webservices
    By noFriends in forum .NET Development
    Replies: 5
    Last Post: October 8th, 2008, 11:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

SEO by vBSEO