relative-path

In Visual Studio how to give relative path of a .lib file in project properties

I am building a project using Visual Studio. The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the actual project I am building. To be more clear, I have a "ParentDir" which has two subDirectories Project1 and Project2 under it. Now Project1 depends on lib genera...

AJAX and Relative Path Scope

Hi Everyone! First post here and I'm hoping someone can help me out. :) I'm trying to lightbox a page containing a SWF via the nifty AJAX feature in Facebox (for jQuery). The trouble is that the paths now work relative to the main index page, not the directory that houses the flash page. Here's a directory breakdown: ./   - index.html ...

How can I get MSBUILD to evaluate and print the full path when given a relative path?

How can I get MSBuild to evaluate and print in a <Message /> task an absolute path given a relative path? Property Group <Source_Dir>..\..\..\Public\Server\</Source_Dir> <Program_Dir>c:\Program Files (x86)\Program\</Program_Dir> Task <Message Importance="low" Text="Copying '$(Source_Dir.FullPath)' to '$(Program_Dir)'" /> Output ...

Absolute path & Relative Path

What's the difference between absolute path & relative path when using any web server or tomcat? ...

Preferred way to include relative reference to JavaScript in VS 2008 nested Masterpage.

Our base Masterpage has something like the following <head runat="server"> <title></title> <script type="text/javascript" src="<%= Page.ResolveClientURL("~/javascript/actions.js")%>"></script> <script type="text/javascript" src="<%= Page.ResolveClientURL("~/javascript/jquery/jquery-1.2.6.min.js")%>"></script> <asp:content...

How do I 'use' a Perl module in a directory not in @INC?

I have a module in the parent directory of my script and I would like to 'use' it. If I do use '../Foo.pm'; I get syntax errors. I tried to do: push @INC, '..'; use EPMS; and .. apparently doesn't show up in @INC I'm going crazy! What's wrong here? ...

Loading Flex resources relative to server root as opposed to .swf location

I have a large (700kb) Flex .swf file representing the main file of a site. For performance testing I wanted to try and move it off to Amazon S3 hosting (which i have already done with certain videos and large files). I went ahead and did that, and updated the html page to reference the remote .swf. It turns out that Flash will load...

python: import a module from a folder

How do I import a python module given its relative path? For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py? Here's a visual representation: dirFoo\ Foo.py dirBar\ Bar.py Foo wishes to include Bar, but restructuring the folder heirarchy is not an option. ...

Relative path interpretation on linux -gcc env

I have a question related to how relative paths are interpreted in various environments . If I have a C code to be compiled on linux using Makefile and gcc , and if some source file has : fopen(“../../xyz.ctl”, ”r”); where should this file be located. Or in other words, if I have fopen(“xyz.ctl” , ”r”); would the compiler look for...

Getting absolute path from relative in Vista seems to fail using Win32/Shell PathCombine()

Hello all, Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box. The relative path is (as exported by the WMP to a playlist): ..\..\..\Public\Music\Sample Music\Amanda.wma The path it's relative to is: C:\Users\userX\Music\Playlis...

./ changes target when i use OpenFileDialog

I'm using a streamwriter to log errors the way it has been designed (please dont ask why) is to open a new streamwriter everytime the application has to log a message. It outputs everything to ./Logs/[current-date].txt which usually resolves to "c:\myappfolder\logs[current-date].txt" Everything works correctly, but after I use an open ...

Relative Paths for Includes in HTML? A Throwback To The Old Days?

[This question is somewhat related to this question, but the answers are not...] I have always used relative paths in HTML and scripting languages (PHP/ASP/JSP) to refer to EVERYTHING. I think the justification had to do with 'what if the website gets hosted in some weird subdirectory.' But my coworker has started throwing absolute path...

How can one add an XML file in classpath at runtime in java?

I am not sure if a URLClassLoader can be used. Also, only the relative path of the XML is known. Thank You. ...

Determining application path in a Python EXE generated by pyInstaller

I have an application that resides in a single .py file. I've been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory. Normally, I build the path using the following code: import os confi...

Is it possible to setup a shared folder for DLLs with relative pathing in Visual Studio 2008?

I am using Team Foundation as source control for a solution with eight C# projects. In order to enforce decoupling and stability, I have only enabled dependencies between the project and their tests. What I would like to do is create a common folder where the compiled libraries and external tools can be placed and shared across the sol...

How do you put a gradient background on ASP.NET menu items?

The boss wants the master page's menu to look nicer. I generated my gradient file with one of the tools available on the net, no problem there.. I tried to make a CSS class for each menu item but when I use the background-image directive and the style builder, I get a line like: background-image: url('file:///C:/Documents and Settings...

How does relative file path works in Eclipse.

So my 2009 new years resolution is to learn Java. I recently acquired "Java for Dummies" and have been following along with the demo code in the book by re-writing it using Eclipse. Anyway, every example in the book that uses a relative path does not seem to read the .txt file it's supposed to read from. Here is the sample code: impo...

Relative connection string to AzMan XML store when using security application block

Is it possible to specify a relative connection string for an AzMan XML store? My current connection string is connectionString="msxml://c:/azman.xml" but I really need to make that relative so other developers and automated builds can get the latest authorization store. MS documentation seems to suggest that connectionString="msxml://...

Converting Relative links to Absolute?

I am programming a small script using PHP and regular expressions The aim of this script is to extract all links in a page and convert these links to absolute- when it is relative - I figured how does relative links works but their are some questions also lets say we have this page http://www.example.com/xxx1/xxx2/xxx3.html if this pag...

Is it bad form to use absolute urls in all platforms?

It seems to me that it is more prevalent in asp.net to be "virtual directory agnostic" by always using virtual directory substitution "~/" form for paths, but this doesn't seem to be a big deal for other platforms where absolute paths are more common. I might name django as one. Is it bad form to use absolute urls in asp.net? In other p...