Thursday, July 30, 2009

How to make Visual Basic project path independent? How can I give different paths to the same URL or location?

I have made a quiz in VB. I have given G:\ path to my programming components. But in most of the computers G:\ drive does not exist. So how can I make it Path independent.

How to make Visual Basic project path independent? How can I give different paths to the same URL or location?
I'm not a programmer, but does "%SYSTEMDRIVE%" do you any good? As in %SYSTEMDRIVE%\Folder\fileiwant.doc ?
Reply:I'd use "App.Path " I.E. (Open App.Path %26amp; "\FILENAME.TXT" For Input As #1), and have you files in the same directory as your program... I'm no expert, but it always worked for me.


No comments:

Post a Comment