SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Mapping a drive via 24x7 scripting

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Mapping a drive via 24x7 scripting
Author Message
nico



Joined: 08 May 2001
Posts: 13

Post Mapping a drive via 24x7 scripting Reply with quote

Mapping a drive via 24x7 scripting
==================================

can this be done?

we don't want to call a batch file that does it.

we want it done internally in the script.

does anybody know how? thank you.

Tue May 08, 2001 7:38 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Mapping a drive via 24x7 scripting Reply with quote

Try using Call statement to call Win API function WNetAddConnection2 in MPR.DLL

DWORD WNetAddConnection2(

LPNETRESOURCE lpNetResource, // points to structure that specifies connection details

LPCTSTR lpPassword, // points to password string

LPCTSTR lpUsername, // points to user name string

DWORD dwFlags // set of bit flags that specify connection options

);

: Mapping a drive via 24x7 scripting
: ==================================

: can this be done?

: we don't want to call a batch file that does it.

: we want it done internally in the script.

: does anybody know how? thank you.

Tue May 08, 2001 9:00 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.