Re: Newbie Question Where to put files?

From: Andy O'Neill (aon14nocannedmeat_at_lycos.co.uk)
Date: 12/22/04


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


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 wil ... After running the deployment routine and clicking setup.exe, no "bin" folder ...
    (microsoft.public.dotnet.languages.vb)
  • 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)
  • RE: setup projects on dotnet
    ... David Guyer - VBQA Deployment Testing ... Unable to build folder named 'folder name' when building my web deployment project. ... >>There's no single site or newsgroup. ... >>>Subject: setup projects on dotnet ...
    (microsoft.public.vsnet.setup)
  • Re: ClickOnce deployment problem! New problem!!!
    ... folder for the files in the deployment folder. ... I can't find what is wrong with the deployment. ... COMPONENT STORE TRANSACTION FAILURE SUMMARY ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Debugging in vs 2003 behaviour
    ... folder) assemblies in a dll project which is actual my web project in ... The lines displayed while debugging do not correspond to the current ... found (original folder, temporary folder. ... The Common language runtime was unable to set the breakpoint. ...
    (microsoft.public.dotnet.framework.aspnet)