English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.

2007-08-20 22:20:38 · 2 answers · asked by utkarshgupta47 1 in Computers & Internet Programming & Design

2 answers

I'm not a programmer, but does "%SYSTEMDRIVE%" do you any good? As in %SYSTEMDRIVE%\Folder\fileiwant.doc ?

2007-08-20 22:37:27 · answer #1 · answered by ? 6 · 0 0

I'd use "App.Path " I.E. (Open App.Path & "\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.

2007-08-20 23:09:38 · answer #2 · answered by Doyzer 2 · 1 0

fedest.com, questions and answers