filepath

How to allow the user to select an input file for my SQL AdventureWorks web application?

I have a SQL and VS 2008 web application that I need to capture the full file path (directories and file name) from the selected file on the client computer. And I want the user to be able to run this application from a Mozilla Firefox browser. This is the trick cause IE supports file path but apparently not Firefox. So user selects a ...

get error when i try to open file using specific path

i get errors when i try to open a file using the file path out_stream5.open("C:pathshowitems.txt", ios::out); warning C4129: 'o' : unrecognized character escape sequence error C2100: illegal indirection ...

Is there an equivalent of C#'s Path.GetExtension in Flex?

I want to get the extension of a file path in Flex. In C# I would just use Path.GetExtension() to do this. Is there an equivalent in Flex, or do I have to write my own? ...

Help with filetype association!

I have the actual association part down, but when I open the file that is associated with my Python program, how do I get the filepath of the file opened? I think it is something like sys.argv? But that just returns the path to the python program, not the associated file. ...

Where can I view rountrip information in my ASP.NET application?

Hi All, I'm playing around with storing application settings in my database, but I think I may have created a situation where superfluous roundtrips are being made. Is there an easy way to view roundtrips made to an MS Access (I know, I know) backend? I guess while I'm here, I should ask for advice on the best way to handle this proje...

Locating file path from a <InMemoryUploadedFile> Django object

Hi all I have a Django app which, submitting a package, should return values that are inside it.. Submitted the form to a view called "insert": request.FILES['file'] returns the file objects, but it is of kind < InMemoryUploadedFile>. What i need is a way to get the absolute path of the uploaded file, so that i can feed it to a metho...

WPF/C#: How to add images from a horizontal listbox/listview by (file paths coming from a database table)

Is there are way to customize the listbox/listview horizontally and add items (images) coming from a database which has a record of image file paths? ...

how to specify the file path in rails over Mongrel web server

hi, I have a request to load a swf file, flaMovie.swf from rails. The swf file is located the directory /home/user1/railsproj/flash. I have the code index.rhtml under view directory to show the .swf file, ID=flaMovie WIDTH=250 HEIGHT=250> When I ran the code, I got the error, ActionController::RoutingError (No r...

Recursive function for copy of multilevel folder is not working.

Recursive function for copy of multilevel folder is not working. I have a code to copy all the mulitilevel folder to new folder. But in between I feel there is problem of proper path recognition, see the code below.. <?php $source = '/var/www/html/pranav_test'; $destination = '/var/www/html/parth'; copy_recursive_dirs($source, ...

Java Filepath Question

I am trying to finish a java program that uploads a file from a client machine to a webserver. The java program is executed with a bat script. I need to pass in a file name to the java program somehow since the filename is different every time. Or can i somehow use %1 instead of the filepath? I dont know. ...

How to identify that the string is a path to any file, using PHPcode?

Using PHP, How to identify that the string is a path to any file? ...

Map the physical file path in asp.net mvc

Hi, I am trying to read an XSLT file from disk in my ASP.Net MVC controller. What I am doing is the following: string filepath = HttpContext.Request.PhysicalApplicationPath; filepath += "/Content/Xsl/pubmed.xslt"; string xsl = System.IO.File.ReadAllText(filepath); However, half way down this thread on forums.asp.net there is the foll...

Problem in getting the path of a shortcut file!!

In my application,I have an option of adding files to a list..were it will let the user to select multiple files at the same..am using CFileDialog to do tis and I enabled OFN_MULTISELECT (for multiselect)...The problem am facing is,When I try to add a shortcut file..its not taking the actual shortcut path,its reffering to the actual path...

Is there a more correct type for passing in the file path and file name to a method

Hi What I mean by this question is, when you need to store or pass a URL around, using a string is probably a bad practice, and a better approach would be to use a URI type. However it is so easy to make complex things more complex and bloated. So if I am going to be writing to a file on disk, do I pass it a string, as the file name a...

Escaping slash in Postgresql

I'm trying to write an sql function in Postgresql that will parse a file path. I want to return just the file name. I cannot get past getting an accurate text string in the function. Here is the function: Function: job_page("inputText" text) DECLARE $5 text; BEGIN $5 = quote_literal("inputText"); return $5; END When I run this: sele...

How to programmatically open Microsoft Infopath in C#?

I need to provide the equivalent of a hyperlink to open a new infopath form within my UI. However, that is all that the button should do - open the correct form by filepath, in InfoPath, and then the reference should be dropped. Does anyone know how to do this? Thanks!! badPanda ...

File Path for Source Property not work properly

Hello Friends. I have "WPF userControl Library" project. In it I have window which has next line of code <Image x:Name="imgInstructionIcon" Source="images/InfoIcon.png" > and also in project I have "images" folder which contains InfoIcon.png file. But My code didn't see this file and give next error: Error 58 The file images...

Doing file path manipulations in XSLT

I'd like my generated output file to contain file paths that point to a path relative to the stylesheet. The location of the stylesheet can change and I don't want to use a parameter for the stylesheet. My solution for this is to get the full stylesheet URI: <xsl:variable name="stylesheetURI" select="document-uri(document(''))" /> Now...

How to get absolute file path from base path and relative containing ".."?

string basepath = @"C:\somefolder\subfolder\bin"; // is defined in runtime string relative = @"..\..\templates"; string absolute = Magic(basepath, relative); // should be "C:\somefolder\templates" Can you help me with Magic method? Hopefully not too complicated code. Is there the "Magic" method in .NET Framework? ...

Find a file with a certain extension in folder

Given a folder path (like C:\Random Folder), how can I find a file in it that holds a certain extension, like txt? I assume I'll have to do a search for *.txt in the directory, but I'm not sure how I'm suppose to start this search in the first place. EDIT: Thanks all! Works like a charm. Gotta hone my search skills :) ...