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
...
I want to generate recursive file listings with full paths
/home/ken/foo/bar
but as far as I can see both ls and find only give relative path listings
./foo/bar (from the folder ken)
It seems like an obvious requirement but I can't see anything in the find or ls man pages.
...
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...
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...
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...
To make it simpler for a webapp to share files with another app on a different server, I'm using a base href tag in my master page. As many people have discovered, this breaks webform paths. I have a working Form Adaptor class but am not sure how to get the absolute path of the url. Currently, my program is hardcoded to use something ...
I have an asp.net mvc project that uses some search methods in a seperate library.
This library needs to know the location of my lucene index files.
private static string lucenePath = ConfigurationManager.AppSettings["lucenePath"];
public static ColorList SearchColors(Query query) {
return new ColorList(
new...
I'm doing some local development using Django and Satchmo. When I upload product images locally via the admin, the path to the image shows up as an absolute path, complete with drive letter, rather than the proper relative path.
Stranger still, Satchmo saves both the original image and the thumbnails it generates in both me /media/ dir...
I find myself using the ResolveUrl function a lot in my aspx pages but the resolved path is always relative. i would like to be able to have the rendered path start with the regular "http://localhost/myproject/"
How can i achieve that without breaking any code in case i change the hierarchy of my files?
Would it be inefficient to write ...
I often make mistakes in making aliases:
ln -S $Personal/Books $Buy/Books (1)
Instead, I have to write the whole path to get the last command working:
ln -S /Users/user/something/.../Books /Users/user/something/.../Books (2)
I would really love to get something similar to (1) working. It is so time consuming to do (2). How...
I have the following snippet in my Ant script. It executes just fine:
<exec executable="C:\test\foo\programName.exe" />
But then when I try to execute it by setting the directory, like so:
<exec executable="programName.exe"
dir="C:\test\foo\" />
I get:
Execute failed: java.io.IOException:
Cannot run program "programName.ex...
Hi
I am new to .htaccess and mod_rewrite.
I am using the following Rewrite rules :
RewriteRule ^wants/([0-9]+)$ /wantlist.php?wantid=$1
RewriteRule ^dashboard$ /dashboard.php
I am able to successfully redirect both the cases.
But in order to do this, I had to change the css, js and other paths to absolute paths without which the ...
Hi
I am using a .htccess file in order to rewrite my URLs. I am using the following rules in my .htaccess files
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^product/([0-9]+)/([A-Za-z0-9+]+)$ /product.php?productid=$1&prodname=$2
The rewrite worked fine.
But when i try to access any other page through relative...
Is there a simple and reliable way to determine the URL of the currently-executing JavaScript file (inside a web page)?
My only thought on this is to scan the DOM for all the script src attributes to find how the current file was referenced and then figure out the absolute URL by applying it to document.location. Anyone have other idea...
Hi
I was just wondering what is the best way to define urls linking to pages within a domain name. For example, for domain www.example.com .. I can have links like
<a href="http://www.domain.com/test.html">test</a>
or
<a href="test.html">test</a>
One of the issues, which I came across was that while using templates .. if I...
Hi,
Is there anyway in Java to find out if the given path is absolute or not regardless of the platform the program is currently running. So, what I want is probably something like the following example:
On Linux:
new File("/home/").isAbsolute() // Should return true.
new File("C:/My Documents").isAbsolute() // Should *also* return t...
Hi
I work in a group project and after every checkout
I have to remove and add the javamail api..(because the path is relative)
how can i make it IN the Project folder?
This is how i add the library :
right click on librarys folder
Add/jar Folder..
Choose the mail.jar
But when my collegue checks this out... he get's problems.
How ca...
I've created a pseudo user control for a site written in classic asp. The control is simply an asp page (with full HTML headers and body) that resides within an iframe in the parent page. The point was to create an AJAX-like interface for uploading files asynchronously (the parent page contains a large form and I didn't want to have to...
I'm trying to convert "~/Uploads/Images/" to an absolute path I can create a FileStream from. I've tried VirtualPathUtility and Path.Combine but nothing seems to give me the right path. The closest I got was VirtualPathUtility.ToAppRelative, but that was just the file's location as a direct child of C:.
There must be a way to do this.
...
What is the correct way to find the absolute path to the App_Data folder from a Controller in an ASP.NET MVC project? I'd like to be able to temporarily work with an .xml file and I don't want to hardcode the path.
This does not work:
[HandleError]
public class HomeController : Controller
{
public ActionResult Index()
{
...