path

How can I put $HOME/opt/git/bin to my PATH?

I tried to include the following unsuccessfully to my ~/.profile: export PATH='$HOME/opt/git/bin' It seems not to work because $git gives me nothing. I am trying to install Git. I have also tried commands here. ...

How to delete a long path in windows.

OK, this isn't necessarily programming related, but it might have a programmatic solution. When importing a project into eclipse, it somehow started creating recursive versions of the directory. Now, when I try to delete anything, I get the message " the file name you specify is too long." I can't delete it from the command shell. I ...

serve with apache all paths under a domain through one script.

i'm hosting a website through a hosting company [1] on a linux/apache server. until now i serve the different content through one script with parameters. an example url is www.mydomain.com/pages.php?date=1-10-2008 now i want to change the scheme the url is composed of to something which looks completely like a path url. eg.: www.mydo...

How do I convert a path with a drive letter to a UNC path

How do I convert a path with a drive letter like W:\Path\Share to the equivalent unc path like \\server\Share\File in .Net? At the command prompt you can run net use and that will list the mappings. How do I get at that info in .Net? ...

problem reading args from batch script

On windows, I'm trying to acquire the file name using the %~f1 parameter. I'm doing this from a new voice (command) which I've added to the contextual menu. In the windows registry, the voice simply calls a batch script which prints the file name, by this way: `C:\script.bat %~f1` but I get this output: `C:\Documents and Setting...

Best way to determine if two path reference to same file in C/C++

How would I compare 2 strings to determine if they refer to the same path in Win32 using C/C++? While this will handle a lot of cases it misses some things: _tcsicmp(szPath1, szPath2) == 0 For example: forward slashes / backslashes relative / absolute paths. [Edit] Title changed to match an existing C# question. ...

Is there any simple way to check that a path to a file is inside a certain folder (.NET framework)?

In my program I need to check that several paths to files are inside system temporary files folder (for example C:\Users\Roman\AppData\Local\Temp). I haven't found any method in System.IO.File, System.IO.Directory and System.IO.Path classes to do so. So I created my own: public static bool IsSafeToDeleteFileOrDirectory(string path) { ...

How to keep from duplicating path variable in ksh.

Similar question to How to keep from duplicating path variable in csh. But I don't use csh. PATH=${SOMETHING}:${PATH} How do I remove duplicates from PATH. ...

python, path of script

How do i get the path of a the python script i am running in? i was doing dirname(sys.argv[0]) however on mac i got only the filename and not the full path as i do on windows. No matter where my application is launched from, i want to open files that are relative to my script file(s) which is why i need the directory path. ...

Asp.net FileUploader doesn't work when using UNC file path

Let me start by saying, I'm no expert in windows file permissions, so maybe there is something very basic I am missing here. I have a Asp.net FileUploader control. I have a folder on the same machine as the Asp.net application I would like files to be uploaded to. I want to be able to tell the FileUploader to put the files in \\this...

Where to set LD_LIBRARY_PATH on solaris?

What is the best place to set up application specific LD _LIBRARY _PATH variable on solaris? How does LD_LIBRARY_PATH variable work? We currently set it up in .kshrc, but different applications need different versions of messaging framework, but these applications run under the same use and hence they would need different LD_LIB...

How do I get the path of a process in Unix / Linux

In Windows environment there is an API to obtain the path which is running a process. Is there something similar in Unix / Linux? Or is there some other way to do that in these environments? ...

How do I configure my sys.path variable in linux?

I want to automatically add entries to python's sys.path variable when run by my user in linux. Is there something I can tweak in my home directory to get it done? ...

Cannot install components that worked under D7 in D2009

Hi. I have lots of components that worked perfectly under D7. I managed to compile and install them by dragging them into the Delphi 2009 IDE. However, when I try to use those components in a project, the compiler says it cannot find the source code of them. Where I can enter the path to that library? Solution: I dragged and dropped...

Run, The Command Line and that Path Variable

Hi, I'm having a very weird issue with the command line and running Ant. I point the path variable at the location of my Ant bin directory (C:\Ant\bin) and when i go into a command window and type PATH it shows the location in it. But when I go to run Ant by typing "ant" it does nothing and states that it isn't recognized. But when I g...

In Mac OSX 10.5, it can't find my Terminal commands sudo, find, etc.

I don't know what has happened, but in my Terminal on Mac OSX 10.5 it can no longer find my sudo command, or find command, etc. They are there because if I put /usr/bin/sudo or /usr/bin/find it works fine... My .bash_login file looks like this: export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin$PATH" My .bash_pro...

Is require '/home/../http/' as fast as require '/http/' ?

I know that it is poor performance to use relative paths when including a file in php. But, is this true for for all paths or just paths relative to the assumed (context) include path? Is this line require '/home/../http/test.php' as fast as this line require '/http/test.php' ...

If the path of a file has space in between the uri cannot fetch the file in the path.

The message box crops up could not find part of the path of the file"file path" when i try to open a file that has space in its file path. I have used LocalPath instead of AbsolutePath and it works fine for me, but its only limited to WinApps, i needed a more generic solution. Some thing like Uri unescaped data path. I am not sure about ...

How do I detect if a mouse / finger is moving along a certain path ?

I'm developing an application for iPhone, and I want to detect when the user is moving his finger along a certain path. Specifically, I want to detect when the user moves their finger along a specific circular path. This would probably be easily adapted from detecting mouse motion along a path. ...

How can I know python's path under windows?

I want to know where is the python's installation path. For example: C:\Python25 But however, I have no idea how to do. How can I get the installation path of python? Thanks. ...