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!

MAPPED DRIVE VOLUME NUMBER

Status
Not open for further replies.

teknik

Programmer
Feb 27, 2001
33
IN
Hi,
Is there any method to get the volume number of the mapped network drive ? for eg from Comp2 the D drive of Comp1 is mapped to H:. We want the volume number of H drive ie the D drive on Comp1

Thanks in advance
 
Teknik

? sys(5)

Or if you have a file on the server :

SET LIBRARY TO "FOXTOOLS.FLL" ADDITIVE
cDriveLetter = JUSTDRIVE("h:\myText.txt")
? cDriveLetter
 
Thanks for the reply.

But what we are looking for is the Volume Serial Number of the mapped drive. As per the example given above when I run my VFP application from Comp2 I want the Volume Serial Number of the drive mapped to Comp1 (which has the data used by the VFP application).




 
Maybe this is what you are looking for:
Code:
You can use the following code for finding the volume serial number of floppy disk and hard disk



*You can use the following code for finding the volume serial number of floppy disk and hard disk
hd=allt(sys(5))
fpno = '!vol '+hd + ' > '+hd+'\'+'fp.txt'
&fpno
mfile1 = hd + '\fp.txt'
mfile2 = hd + '\temp.dbf'
sele 1
create table &mfile2 (desc c(80))
appe from &mfile1 sdf
dele all for recno() # 3
pack
volserialno = allt(substR(desc,25,65))
use
dele file &mfile2
dele file &mfile1
messagebox(volserialno)

 
I suggest that you ask that question on the window api forum. once you get what api call would provide the info check on site


to locate the useage in vfp.
or post it back here, I will help in providing the correct usage in fox. Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top