tagged [path]

C# getting the path of %AppData%

C# getting the path of %AppData% C# 2008 SP1 I am using the code below: However, I am getting an exception that points to the location of where my application is running from: > Could not find a part ...

3 Feb at 17:16

How to get my project path?

How to get my project path? > [get path for my .exe using c#](https://stackoverflow.com/questions/3991933/get-path-for-my-exe-using-c-sharp) Hello I have a question: How can I get my root project pa...

23 May at 11:47

How to get the parent dir location

How to get the parent dir location this code is get the templates/blog1/page.html in b.py: but i want to get the parent dir location: ``` aParent |--a | |---b.py | |---templates | |-------...

7 May at 06:6

Using environment variable in a file path

Using environment variable in a file path I've got an environment variable set that points to a specific folder (call it MYFOLDER for example). When typing in `%MYFOLDER%\SubFolder` into windows explo...

How to permanently set $PATH on Linux/Unix

How to permanently set $PATH on Linux/Unix On Linux, how can I add a directory to the $PATH so it remains persistent across different sessions? #### Background I'm trying to add a directory to my path...

18 Sep at 18:8

relative path in BAT script

relative path in BAT script Here is my own program folder on my USB drive: I would like to use `run.bat` to start `Iris.exe` I cannot use this: `F:/Program/bin/Iris.exe` like a shortcut, because somet...

6 Sep at 22:34

Android SDK manager won't open

Android SDK manager won't open So I installed the android sdk for Windows: [http://developer.android.com/sdk/index.html](http://developer.android.com/sdk/index.html) (the installation link) And ran i...

2 Feb at 07:16

adb is not recognized as internal or external command on windows

adb is not recognized as internal or external command on windows I set the `c:/android-sdk/tools` path to the path environment and commands like `emulator` is working just fine. But the `adb` command ...

27 Sep at 04:8

WPF C# Path: How to get from a string with Path Data to Geometry in Code (not in XAML)

WPF C# Path: How to get from a string with Path Data to Geometry in Code (not in XAML) I want to generate a WPF Path object in Code. In XAML I can do this: How can I do the same in Code? Is there a cl...

8 Jan at 18:13

PHP: Serve pages without .php files in file structure

PHP: Serve pages without .php files in file structure I am working on building an internal CMS for clients. Instead of creating a new php file for each page, I am wondering if there is a way to load u...

1 Jan at 02:38

Odd C# path issue

Odd C# path issue My C# application writes its full path surrounded by double quotes to a file, with: Normally it works, the written file contains But, if the executable path of my application contain...

18 Oct at 01:29

Relocating app.config file to a custom path

Relocating app.config file to a custom path Is it possible to relocate the whole App.Config file to a custom path? It seems a bit odd that the config file resides in the same folder as the exe, with W...

3 Dec at 09:15

Folder management with r : Check existence of directory and create it if it doesn't exist

Folder management with r : Check existence of directory and create it if it doesn't exist I often find myself writing R scripts that generate a lot of output. I find it cleaner to put this output into...

8 Feb at 20:31

c# type to handle relative and absolute URI's and local file paths

c# type to handle relative and absolute URI's and local file paths I have a use cases where I will be dealing with both local file paths (e.g. `c:\foo\bar.txt`) and URI's (e.g. `http://somehost.com/fi...

28 Apr at 18:55

An Attempt to attach an auto-named database Error

An Attempt to attach an auto-named database Error "An attempt to attach an auto-named database for file C:\Users\John\documents\visual studio 2010\Projects\PAS\PAS\bin\Debug//PatAddSys.mdf failed. A d...

1 Mar at 01:36

Program uses Microsoft Visual Studio folder instead of relative path

Program uses Microsoft Visual Studio folder instead of relative path When I try to run .aspx page with next code: it writes a message: "Could not find a part of the path 'C:\Program Files\Microsoft Vi...

How can I generate a list of files with their absolute path in Linux?

How can I generate a list of files with their absolute path in Linux? I am writing a shell script that takes file paths as input. For this reason, I need to generate recursive file listings with full ...

8 Feb at 19:13

C# Set probing privatePath without app.config?

C# Set probing privatePath without app.config? I have a C# application, and to organize its files I have some DLL's in a folder called "Data". I want the EXE to check this folder for the DLL's just li...

27 Apr at 05:31

How to place the ~/.composer/vendor/bin directory in your PATH?

How to place the ~/.composer/vendor/bin directory in your PATH? I'm on Ubuntu 14.04 and I've been trying all possible methods to install Laravel to no avail. Error messages everything I try. I'm now t...

26 Dec at 11:6

What is the best way to combine a path and a filename in C#/.NET?

What is the best way to combine a path and a filename in C#/.NET? What is the best way to combine a path with a filename? That is, given `c:\foo` and `bar.txt`, I want `c:\foo\bar.txt`. Given `c:\foo`...

15 Jun at 00:12

Nancy: is there a Server.MapPath("~/") equivalent?

Nancy: is there a Server.MapPath("~/") equivalent? I can't seem to find an equivalent in Nancy for System.Web.HttpContext.Current.Server.MapPath() in the Nancy framework. I just want to load a textfil...

11 Feb at 04:45

Removing %20 from URI Relative Path

Removing %20 from URI Relative Path I am generating a relative path from 1 directory to another. If the OutputDirectoryName property is a directory containing spaces, the spaces are encoded using %20,...

18 Apr at 17:38

Extracting Path from OpenFileDialog path/filename

Extracting Path from OpenFileDialog path/filename I'm writing a little utility that starts with selecting a file, and then I need to select a folder. I'd like to default the folder to where the select...

13 Feb at 09:50

How to get a path to a resource in a Java JAR file

How to get a path to a resource in a Java JAR file I am trying to get a path to a Resource but I have had no luck. This works (both in IDE and with the JAR) but this way I can't get a path to a file, ...

25 Dec at 03:20

Full HTTP URL vs document root URL performances

Full HTTP URL vs document root URL performances I noticed a performance degradation when in my webpages I use the full HTTP URL to load an image. Let's say my website is on mydomain.com. Let's say ima...

28 Feb at 10:41