Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set path to a network drive??

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi all, How could i open a dialogue box that askme for a network drive and set dthe path to it

I've been trying with :

set path to z:

asuming that "z:" is the work drive but NOT RESULT ALL.

thanks in advance
 
You don't have to refer by drive letter. You can use

SET DEFAULT TO \\ServerName\Path

Brian
 
myPath = GETDIR("","","",64))

Remove the extra parenthesis.
Also note that this is only valid in VFP 7 & 8

Ed


Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
smallbug.gif
 
Hi, i'm using VFP 5.0 and I need to get a network drive and store it on a dbf, or how to get a path in a network.

I try to use ChrisRChamberlain option, but only return path on the same machine not when i look on a network drive.


thanks
 
Gert;

Look at the FAQ ==> faq184-2343

Ed

Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
smallbug.gif
 
Have you tried mapping the drive? VFP 5, 6, 7 & 8 all see a mapped drive as it would the C drive.
 
I also use the followiong.

SET PATH TO ADDBS(SYS(5)+SYS(2003))

If it a good habit to include the ADDBS (add backslash) function in case the drive is on the root.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top