I have a msbuild target and it has a Import tag like this:
<Import Project="$(MSBuildExtensionsPath)\Company\Company.LifeCycle.targets" />
In contents of Company.LifeCycle.targets file, how can I get programatically the current directory (in this case is: C:\Program Files\MsBuild\Company) ??
I use VS 2008, .NET 3.5
Edit: I have seen...
Hi
Is there any way to retrive starting point and endpoing point of pathfigure ??
I was trying to use this method
GetPointAtFractionLength
but sometimes (I don't know why) this method throws an exception
...
BRIEF SUMMARY OF WHAT I WANT: If I take a file name as argument of a function, how do I include that file name in the path location such that the name of the file in the path location is the one user enters. If you didn't understand what I am saying, then read below for explanation:
SECONDARY EXPLANATION:
I am making a general functio...
Hello!
I have a webapp running in my local tomcat. The path is: tomcat/webapps/myproject.
I have some resources in this project all in a folder with this path: tomcat/webapps/myproject/resources
So, I am trying to acces to this resources from a java project, using a file config.properties. In this file I have something like this:
tom...
Hi all,
I would like to save an excel file as a .pdf file on a specific location and send the file in a mail
I'm using Office 2000 :|
This is my code so far:
Application.ActivePrinter = "PDF995 on Ne00:"
ActiveSheet.PageSetup.PrintArea = Range("A68").Value
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"PDF995 ...
I have a an XML file where I need to get up 2 dirs to get a file (from water to fire)
<album basepath="albums/water/images">
<img src="001.jpg" />
<img src="002.jpg" />
<img src="../../fire/images/005.jpg" />
</album>
So my question is if
albums/water/images/../../fire/images/005.jpg
is a valid path?
...
How can I add my own directory to PATH without editing my local profile's .bash_profile or .bashrc?
I need to make the scripts in the directory universally accessible from any user that is logged in.
...
Hello!
In a web application running in a local tomcat, I am trying to load a folder /folder which is in tomcat/webapps/myproject/WEB-INF/folder
To do it:
InputStream realPath = getClass().getClassLoader().getResourceAsStream("/folder");
Which returns null. This piece of code is supposed to load resources from classpath, which is ...
How can I get the bin path of php from PHP? I saw it in phpinfo(); but I need another method that gets it in linux and windows systems.
...
when i travel between files using a shortcut over a pathfile, then it seems like i don't just travel between files.
i go to a file using >, within that file i change location of the cursor and do something, then i press <. but instead of going to the previous file, it first goes to the original location i was at when i entered the file,...
Hi,
I am looking for validating a textbox in my asp.net application for a valid file path like
\\127.0.0.1\folder
http://ftp.google.com
and all other valid file paths
...
Greetings,
I know there are similar questions with answers, and some of them are being offered to my as I type this. However, none of them seem to offer a solution without absolute paths.
I have two projects in an SVN project, and they need use some cpp and h files in a shared way.
I simply could not find a way of avoiding absolute pa...
i have this inside my site.css file (in the COntent directory)
body { width: 100%; background: #e7e6de url("/content/images/back-page1.png") repeat-x; font: normal 13px arial, sans-serif; text-align: center; color: #4c4c4c; }
it works fine when i test it locally but it doesn't work when i upload the site to the hosting provider.
the ...
I installed python3, I can open idle and it says it is running python3.0.1, but when I enter python3 in the terminal (on OSX) I get an error saying 'command not found'. Entering python gets me the 2.x version that came on the computer. Any advice on how I can access python3 from the terminal?
Thanks
...
There was a good module, path.py, written by Jason Orendorff. If I recall correctly, there was some discussion about adding it to the standard library then it faded away.
It looks now that there are multiple outgrowths of the original one. I can find so far unipath, what looks like a forked path.py, another one, and a few others accordi...
I'm developing a website in ASP .NET MVC 2 using C#.
I have a partial view, Header.ascx. In there I have an image for my website, MainImage.png.
When I use one of the primary Views I've created, the image shows up fine. For instance, I hit the Index ActionResult of my News Controller. (site.com/News)
However, when I dig deeper, I se...
Hello,
It seems that there is a path lenght limit for VS2008 when loading XAML assemblies.
Using the Microsoft sample Southridge, if the project is stored on "C:\Projects\C# samples\Southridge_Labs\1.Southridge_Fundamentals\Start" the designer does not load the assemblies.
But if I copy my files the project to the root (C:\Southridge_...
Hi,
I have a structure like:
src
-|com
-|company
-|Core --> JAVA class
-|rules --> text files
Inside Core is a Java Class that uses:
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));
But I cannot figure out what relative path to use. Now I use:
"..\\..\\...
Hi,
I have a String class which has a member std::string. One of the constructor is
String (std::string s)
{
// member: std::string _mString;
_mString = s; // error on path assignment
}
I now have functions that take String as parameter, e.g. Load(String path);
but it turns out that boost::filesystem::path::string() is inc...
Possible Duplicate:
Is there a Perl module that works similarly to the Unix which command?
I'm looking for an equivalent of which in Perl that would give me the full path to a program according to the current $ENV{PATH}.
Is there a CPAN module to do that? Or should I roll my own?
...