I have an app that needs to be mapped to a server 8 miles away. My problem is the shared folder on the server has a space in the folder name.
The 'Net Use' command below does not work.
I have also tried 'Benchs~1', 'Bench ~1'.
I am working in VFP 5.0 and the app will be run on Windows NT 4.0, Windows 95, Windows 2000 and Windows XP machines.
Is there another way to map to a drive, programmitically?
If .NOT. File("W:\Amdf.dbf")
Messagebox("You have lost your network connection"+CRLF+" I will try to reconnect",48,"Network Error")
Run Net Use W: \\ServerName\Bench Stock
EndIf
Thanks in advance for any help
Pat
The 'Net Use' command below does not work.
I have also tried 'Benchs~1', 'Bench ~1'.
I am working in VFP 5.0 and the app will be run on Windows NT 4.0, Windows 95, Windows 2000 and Windows XP machines.
Is there another way to map to a drive, programmitically?
If .NOT. File("W:\Amdf.dbf")
Messagebox("You have lost your network connection"+CRLF+" I will try to reconnect",48,"Network Error")
Run Net Use W: \\ServerName\Bench Stock
EndIf
Thanks in advance for any help
Pat