Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using NDAP controls with WSH
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Ken McKelvey  
View profile   Translate to Translated (View Original)
 More options 29 Aug 2003, 13:50
Newsgroups: novell.devsup.activex
From: ken.mckel...@knightfrank.com (Ken McKelvey)
Date: 29 Aug 2003 05:50:38 -0700
Local: Fri 29 Aug 2003 13:50
Subject: Using NDAP controls with WSH
I am trying to use the NDAP controls with Windows Script Host but am
not getting very far as all the examples seem to be in VB. In WSH I
seem to be having trouble instantiating the objects. Does anyone have
any examples in WSH?

At the moment I am simply trying to simulate NCopy.exe.
From the examples I think the VB code is:

Dim ent As NWVolAdmin.NWEntry
Set ent = NWVolAdmin.FindEntry("\\Server\Vol\file1")
ent.copy("\\Server\Vol\file2")

Presumably in WSH I need to use WScript.CreateObject first but I
cannot find any parameter that works.

Any ideas will be gratefully received.

Thanks,
Ken McKelvey


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken McKelvey  
View profile   Translate to Translated (View Original)
 More options 1 Sep 2003, 14:51
Newsgroups: novell.devsup.activex
From: ken.mckel...@knightfrank.com (Ken McKelvey)
Date: 1 Sep 2003 06:51:10 -0700
Local: Mon 1 Sep 2003 14:51
Subject: Re: Using NDAP controls with WSH
If anyone is interested, I managed to get it to work by:

In JScript:
var NWVol = WScript.CreateObject("NWVolAdmLib.NWVolAdmCtrl.1");
NWVol.FullName = "\\\\server\\vol";
var ent = NWVol.FindEntry("\\\\server\\vol\\file1");
ent.copy("\\\\server\\vol\\file2");

In VBScript:
set NWVol = WScript.CreateObject("NWVolAdmLib.NWVolAdmCtrl.1")
NWVol.FullName = "\\server\vol"
set ent = NWVol.FindEntry("\\server\vol\file1")
ent.copy "\\server\vol\file2"


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google