Newbie Question Where to put files?

G

Guest

My Solution explorer looks like this:

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

Guest

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
 
C

Cor Ligthert

Joisey,

Why dont you just try it, however what is in development time is in your bin
can be in the programfiles folder, however you can change all those things
in your deployment project, so this is not a sure answer.

Cor
 
A

Andy O'Neill

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

Guest

yes that is my question.
My code says to read a line of text from "mylist.txt" and that file sits
in "c:\whatever you work in\bin"
then after deployment will I find mylist.txt in
"c:\program files\yourapp" and will the code find it in that location?
That is , will my txt file be included in the deployment, and will the path
used when I press F5 be corrected in deployment to point to the users path?
Where do I place a readme file so it will get included in the deployment?
thanx joisey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top