Re: Newbie Question Where to put files?

Tech-Archive recommends: Fix windows errors by optimizing your registry

joisey_at_mindspring.com
Date: 12/21/04


Date: Tue, 21 Dec 2004 07:25:35 -0500

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
>>
>>
>>
>>
>
>



Relevant Pages

  • Re: Newbie Question Where to put files?
    ... > If I want a file to reside in the same folder as my main .exe, ... > creating, editing, debugging etc. so that the path used during debugging ... > After running the deployment routine and clicking setup.exe, ... >>> debugger can access them with the same path name that the compiled code ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Deployment folder question
    ... When you build a windows forms project the EXE is always placed in either the ... fact that during development your EXE is in the bin\debug folder. ... > of files during deployment. ...
    (microsoft.public.dotnet.general)
  • Re: Build and Run - I only want to Run
    ... "Start without debugging". ... you can always create a desktop shortcut to your exe in the bin ... folder to run it. ...
    (microsoft.public.vsnet.general)
  • Re: Deployment folder question
    ... of files during deployment. ... to reside in teh bin folder, but the exe is deployed one folder higher. ...
    (microsoft.public.dotnet.general)
  • Re: Newbie Question Where to put files?
    ... That is, will my txt file be included in the deployment, and will the path ... >> If I want a file to reside in the same folder as my main .exe, ... >> creating, editing, debugging etc. so that the path used during debugging ...
    (microsoft.public.dotnet.languages.vb)