Link to home
Start Free TrialLog in
Avatar of waipahu
waipahu

asked on

WNetAddConnection

I am using the WNetAddConnection function
but I want to make the drive letter a variable instead
making it a constant string.

this I have currently and it works.
      WNetAddConnection('\\rsg_server\apps1','','k:');

I want to make the "k:" a variable because the drive
letters will change.

I tried using a variable but I have an error invalid
type string and pchar..or something like that.

Any ideas on how to make this work?
ASKER CERTIFIED SOLUTION
Avatar of edey
edey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of waipahu
waipahu

ASKER

Thank you very much!!!
Glad to be of service :)

GL
Mike