Re: Newbie Question Where to put files?
From: Andy O'Neill (aon14nocannedmeat_at_lycos.co.uk)
Date: 12/22/04
- Next message: rodchar: "a general question"
- Previous message: behemothe: "RE: resize the height of the header column in a datagrid for windo"
- In reply to: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Next in thread: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Reply: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Dec 2004 16:06:47 GMT
Application.StartupPath
Is the path to where the thing is running from.
So that'll be something like "c:\whatever you work in\bin" when you press
f5 as you're developing.
It'll be something like "c:\program files\yourapp" when you deploy it.
Is that what you mean?
-- Regards, Andy O'Neill <joisey@mindspring.com> wrote in message news:e$oLgg15EHA.2964@TK2MSFTNGP09.phx.gbl... >I have saved the link, it looks useful' > > But my question is: > If I want a file to reside in the same folder as my main .exe, for example > readme.txt or datafile.txt, where do I place this file during my vb > sessions of > creating, editing, debugging etc. so that the path used during debugging > wil > be valid in the deployed program? > After running the deployment routine and clicking setup.exe, no "bin" > folder > was created on my clients drive. > .....joisey > > > "Cor Ligthert" <notmyfirstname@planet.nl> wrote in message > news:eBMInJz5EHA.2196@TK2MSFTNGP14.phx.gbl... >> Joisey, >> >> Although you describe it well, do you mean that you want to use the "Bin" >> folder of your project? >> And to be sure, just try it. >> >> In runtime it is the application.startuppath >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsApplicationClassStartupPathTopic.asp >> >> I hope this helps? >> >> Cor >> >> <joisey@mindspring.com> >> >>> >>> Solution 'MyProj' (2 projects) >>> MyProj >>> References >>> bin >>> obj >>> assembly info.vb >>> Form1.vb >>> Form2.vb >>> MyProj_debug >>> Detected Dependencies >>> Primary output from MyProj(Active) >>> >>> When I build the project, the following files are placed in my project >>> directory: >>> MyProj>bin >>> >obj >>> form1.vb etc etc etc. >>> MyProj_debug>Debug>myproj.msi >>> setup.ini >>> MyProj.exe >>> etc. etc. etc. >>> >Release (empty) >>> MyProj_debug.vdproj >>> ================= >>> When I double click the file MyProj_debug\Debug\MyProj.exe, >>> the install runs and creates c:\program >>> files\MyCompany\MyProj_Debug\MyProj.exe >>> ================== >>> Here is my question: >>> My program's function is to copy and modify many files. >>> I have no problem within the code to create a string containing the path >>> to the end user's files. >>> >>> I have created several text files containing the lists of files to be >>> manipulated. >>> >>> Where do I place these files so they will end up in the same directory >>> as the main .exe file? >>> Where do I place files during the vb sessions so that the vb editor and >>> debugger can access them with the same path name that the compiled code >>> will use to find them? >>> Where do I put Readme files so that they will be deployed to the same >>> directory? >>> Is there an on line tutorial I can link to on this subject? >>> >>> thanx........joisey >>> >>> >>> >>> >> >> > >
- Next message: rodchar: "a general question"
- Previous message: behemothe: "RE: resize the height of the header column in a datagrid for windo"
- In reply to: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Next in thread: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Reply: joisey_at_mindspring.com: "Re: Newbie Question Where to put files?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|