Get Local Client PC Drive Letter

Started by Jeremy Whilde, June 23, 2014, 10:30:21 AM

Previous topic - Next topic

Jeremy Whilde

I need to get the local PC drive letter from a compiled WB script located on a server.
The client PC's will either run a logon script that runs the WB exe that is located on the server
or the client PC user will have browsed to the WB exe and run it. So I am after the client PC's drive letter
not the server's drive letter. I have used the following but is this the servers drive letter or the clients?

Path = DirWindows(0)      ;Needs to run from server & pickup local client drive where instance is running
Message("Path", Path)
Drv = StrSub( Path, 1, 3 )
message("Drive Letter" Drv)


Thanks JW

Deana

DirWindows would get the Windows path on system where the process is executing ( the client ).
Deana F.
Technical Support
Wilson WindowWare Inc.

Jeremy Whilde

Deana

Thanks for confirming.

Thanks JW