RE: Files loading

From: Jeff Ciesielski (JeffCiesielski_at_discussions.microsoft.com)
Date: 11/02/04


Date: Tue, 2 Nov 2004 13:20:09 -0800

I would put all of the files into a folder called "files"(or whatever suits
you), and place that folder in the same directory as your application. To
load them, you wouldn't have to specify a drive letter, rather just the
directory name. So if your program were "D:\myapp.exe" you could load the
files by using (@"\files\filename")
"Xarky" wrote:

> Hi,
> I have an application that makes up of files(reading data). Files
> are currently located on drive C. Now I am going to write the program
> and the files being used to a CD. The program is going to be executed
> on different computers and so the CD-Rom drive letter is not going to
> be the same on all computers.
>
> When I load a file from harddisk I do as follows
> (@"c:\fileName")
>
> Can someone help me solve my problem.
>
>
> Thanks in Advance
>



Relevant Pages

  • Re: Files loading
    ... "An unhandled exception of type 'System.ArgumentException' occurred in ... where folder Figures is in the folder of my project. ... > load them, you wouldn't have to specify a drive letter, rather just the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Microsoft hyperlinks wont come up
    ... unless all computers on the network are mapped with the same drive letter to the same ... folder. ... Microsoft MVP - FrontPage ...
    (microsoft.public.frontpage.addins)
  • Re: Files loading
    ... > where folder Figures is in the folder of my project. ... >> load them, you wouldn't have to specify a drive letter, rather just the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Files loading
    ... > where folder Figures is in the folder of my project. ... >> load them, you wouldn't have to specify a drive letter, rather just the ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Drive mappings on clustered servers
    ... the information you gave me is what I needed to redo the folder share ... > It sounds like the problem you're experiencing occurs, because drive letter ... > letter mapping for the physical disk. ... > the physical disk resource is the quorum resource, the Cluster service may ...
    (microsoft.public.windows.server.clustering)