tagged [path]

How to OpenWebConfiguration with physical path?

How to OpenWebConfiguration with physical path? I have a win form that creates a site in IIS7. One function needs to open the web.config file and make a few updates. (connection string, smtp, imperson...

How to add a set path only for that batch file executing?

How to add a set path only for that batch file executing? Basically, I know I can go through my control panel and modify the path variable. But, I'm wondering if there is a way to through batch progra...

Setting the correct PATH for Eclipse

Setting the correct PATH for Eclipse I recently changed my path so I could follow along in the Head First Java book and I had Eclipse before. Now when I try to get onto Eclipse again it won't open bec...

9 Mar at 02:59

Getting Project Root Path In Controller ASP.NET MVC?

Getting Project Root Path In Controller ASP.NET MVC? I am using dotlesscss for my css and I remember how to use that but what I am forgetting is how to get the root project path so that I can generate...

5 Mar at 13:0

How do I get the path to the current C# source code file?

How do I get the path to the current C# source code file? How do I get the path to the current C# source code file, or the directory the file is stored in? (I'm answering this question myself because ...

16 Dec at 00:25

How do I get the full path to a Perl script that is executing?

How do I get the full path to a Perl script that is executing? I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how yo...

18 Feb at 12:18

Getting path to the parent folder of the solution file using C#

Getting path to the parent folder of the solution file using C# I am a beginner in C#, and I have a folder from which I am reading a file. I want to read a file which is located at the parent folder o...

25 Jun at 00:34

Convert file path to a file URI?

Convert file path to a file URI? Does the .NET Framework have any methods for converting a path (e.g. `"C:\whatever.txt"`) into a file URI (e.g. `"file:///C:/whatever.txt"`)? The [System.Uri](https://...

30 Mar at 20:49

How should I handle windows/Linux paths in c#

How should I handle windows/Linux paths in c# My intention is for my application to run on windows and linux. The application will be making use of a certain directory structure e.g. What would be a ...

22 Apr at 18:25

Possible to specify directory path with a wildcard?

Possible to specify directory path with a wildcard? I have the following piece of code: That gets files from a specific directory. Would it be possible to match directories using a wildcard? For examp...

11 Dec at 07:38

Setting environment variables on OS X

Setting environment variables on OS X What is the proper way to modify environment variables like PATH in OS X? I've looked on Google a little bit and found three different files to edit: - - - I don'...

26 Aug at 19:33

How to ensure there is trailing directory separator in paths?

How to ensure there is trailing directory separator in paths? I'm having an issue with `AppDomain.CurrentDomain.BaseDirectory`. Sometimes the path ends with '', sometimes it doesn't and I can't find a...

12 Jan at 13:40

list recursively all files and folders under the given path?

list recursively all files and folders under the given path? > [How to recursively list all the files in a directory in C#?](https://stackoverflow.com/questions/929276/how-to-recursively-list-all-the...

23 May at 11:54

Absolute to Relative path

Absolute to Relative path I'm getting a file from an OpenFileDialog which returns a string with the absolute path to the selected file. Now I want that path as a relative path to a given path (in this...

7 Nov at 13:58

Is there a way to easily parse file paths in portable class libraries?

Is there a way to easily parse file paths in portable class libraries? I'm needing to parse a path into parts from within a portable class library and get things like the filename, extension, just dir...

How to remove illegal characters from path and filenames?

How to remove illegal characters from path and filenames? I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem t...

5 May at 09:51

How to set JAVA_HOME in Linux for all users

How to set JAVA_HOME in Linux for all users I am new to Linux system and there seem to be too many Java folders. java -version gives me: - - - When I am trying to build a Maven project , I am getting ...

Getting Original Path from FileStream

Getting Original Path from FileStream Given a `System.IO.FileStream` object, how can I get the original path to the file it's providing access to? For example, in the `MyStreamHandler()` function belo...

22 Jul at 14:24

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net I have a script file . See the path is `~/Script`. But if I Entered `../../` instead of `~/`,Also the process are working same . M...

30 Jun at 06:50

How to call Path.Combine from MSBuild?

How to call Path.Combine from MSBuild? I have an `` task that MSBuild runs whenever it builds my library. It looks like this: It seems to be working fine, however I'm worried that this may not work on...

22 Aug at 18:5

Create whole path automatically when writing to a new file

Create whole path automatically when writing to a new file I want to write a new file with the [FileWriter](http://docs.oracle.com/javase/1.5.0/docs/api/java/io/FileWriter.html). I use it like this: N...

3 May at 10:39

Path to Powershell.exe (v 2.0)

Path to Powershell.exe (v 2.0) Where is the Powershell (version 2.0) located? What is the path to Powershell.exe? I have Windows Server 2008 and Powershell installed. When I look at this folder: ``` P...

10 Nov at 14:34

Get OneDrive path in Windows

Get OneDrive path in Windows I have a C# WPF application and I am trying to find a way to get the path to the root OneDrive directory in Windows. How can I do this programmatically? I have searched on...

6 Nov at 03:31

How do I include a path to libraries in g++

How do I include a path to libraries in g++ I am trying to include the path to extra libraries in my makefile, but I can't figure out how to get the compiler to use that path. so far I have: and I wan...

26 May at 15:37

How to open my files in data_folder with pandas using relative path?

How to open my files in data_folder with pandas using relative path? I'm working with pandas and need to read some csv files, the structure is something like this: > folder/folder2/scripts_folder/scri...

20 Jun at 09:12