Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello guys , i hope all is well and all is ok ..

 

i have a question about paths etc , i want to set up a new .exe program that can display html pages from the hard drive.

 

i know when i start a new project it creates folders and files.

 

the project files , a bin and an obj folder.

 

i wanted to make sure that my html pages are placed in a new folder say called "pages" that are on the same level as bin and obj.

 

i know a little about web design so know that on the web i can use a local path such as ./pages/name-of-file.html

 

i can get it to work by adding the complete path such as c:\folder\another-folder\file-name.html

 

i can see a problem if i send the files over in a zip to someone they need to un-zip in the same folders on their pc as i have them set to , but if the calls for the files were local to the .exe then it wouldnt matter ..

 

ok probably simple but cant see what to do so if someone can send me a few details it would be great.

 

Kind Regards

Carl

  • Leaders
Posted

well the path thing can be found like this ( ending in \bin )

Application.StartupPath

you could however embed the html files in to your application rather than have them seperate, then call them from inside the app.

Posted

hello again , yes this works just fine , however as i am new to this type of usage , can you give some more details on how i could use files as embeded ? just to help me along :)

 

Kind Regards

Carl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...