WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: Jeremy Whilde on June 23, 2014, 10:30:21 AM

Title: Get Local Client PC Drive Letter
Post by: Jeremy Whilde on June 23, 2014, 10:30:21 AM
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
Title: Re: Get Local Client PC Drive Letter
Post by: Deana on June 23, 2014, 11:23:08 AM
DirWindows would get the Windows path on system where the process is executing ( the client ).
Title: Re: Get Local Client PC Drive Letter
Post by: Jeremy Whilde on June 23, 2014, 12:30:40 PM
Deana

Thanks for confirming.

Thanks JW