Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.erro r: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
Win2003 Server hosting DFS root #NTS-03
\\NTS-03.central.purd ue.lcl\MI
Win2003 Server hosting file share
\\itifs03.itap. purdue.edu\itea _zonedirs\MI
<code>
import win32net
# this works --
win32net.NetUse Add(None,1,{'re mote':r'//itifs03.itap.pu rdue.edu/itea_zonedirs/MI/TEAMDIRS/DCS
Zone','local':' W:'})
# this doesn't work --
win32net.NetUse Add(None,1,{'re mote':r'//NTS-03.central.purd ue.lcl/MI/TEAMDIRS/DCS
Zone','local':' W:'})
</code>
Any help greatly appreciated.
-Sean. 2 3487
On Nov 8, 2:23 pm, Sean Peterson <sean...@gmail. comwrote:
Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.erro r: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
Win2003 Server hosting DFS root #NTS-03
\\NTS-03.central.purd ue.lcl\MI
Win2003 Server hosting file share
\\itifs03.itap. purdue.edu\itea _zonedirs\MI
<code>
import win32net
# this works --
win32net.NetUse Add(None,1,{'re mote':r'//itifs03.itap.pu rdue.edu/itea_zonedirs/MI/TEAMDIRS/DCS
Zone','local':' W:'})
# this doesn't work --
win32net.NetUse Add(None,1,{'re mote':r'//NTS-03.central.purd ue.lcl/MI/TEAMDIRS/DCS
Zone','local':' W:'})
</code>
Any help greatly appreciated.
-Sean.
We actually use win32wnet.WNetA ddConnection2 to map a drive. The
following recipe lists a slightly different way of doing it as well: http://aspn.activestate.com/ASPN/Coo.../Recipe/426742
I don't think you need to make those path strings into raw text if
you're using forward slashes, by the way.
Mike
On Nov 8, 2:23 pm, Sean Peterson <sean...@gmail. comwrote:
Has anyone had success using NetUseAdd() on shares that were replica links on a Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.erro r: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
Win2003 Server hosting DFS root #NTS-03
\\NTS-03.central.purd ue.lcl\MI
Win2003 Server hosting file share
\\itifs03.itap. purdue.edu\itea _zonedirs\MI
<code>
import win32net
# this works --
win32net.NetUse Add(None,1,{'re mote':r'//itifs03.itap.pu rdue.edu/itea_zonedirs/MI/TEAMDIRS/DCS
Zone','local':' W:'})
# this doesn't work --
win32net.NetUse Add(None,1,{'re mote':r'//NTS-03.central.purd ue.lcl/MI/TEAMDIRS/DCS
Zone','local':' W:'})
</code>
Any help greatly appreciated.
-Sean.
I'm not seeing any typos in your code...but it looks like you're
trying to map two different locations to the same drive letter. Maybe
that's throwing an error in and of itself? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Harlin |
last post by:
Has anyone had any success using py2exe with anything you've written
using the Python .NET implementation? (This is the one from the Zope
website -- not ActiveState). I seem to be having trouble with py2exe
and anything I've written using the CLR modules. Has anyone encountered
this?
Thanks,
Harlin
|
by: Eduardo Pérez Ureta |
last post by:
I'm looking for an easy way to use mysql from user (no root, no mysql
system account) space. I don't want the user of my application to have
to use a password to connect to the database. I want to have multiple
databases to differentiate between programs.
Is libmysqld the way to go?
Is a separate mysqld process more efficient?
Does libmysqld do proper locking if accessing from various processes the
same table at the same time?
|
by: Bob Alston |
last post by:
Anyone yet using this software? A free beta version is available here:
http://msdn.microsoft.com/asp.net/getvwd/
The guided tour:
http://beta.asp.net/guidedtour2/
|
by: Jonathan Wilson |
last post by:
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of
msvcrt.lib included there is the exact same one as comes with Visual Studio
..NET 2003.
There are some other things that might be usefull (e.g. the debug version
of msvcrt.lib) but msvcrt.lib is the most usefull thing.
Secondly, install the latest version of the Microsoft Platform SDK.
The "64-bit" compiler will provide versions of undname.exe, nmake.exe,...
|
by: Earl Damron |
last post by:
Has anyone tried having both the original .NET and .NET 2003 on their
workstation at the same time? I now need to build and support apps for two
different clients that use different versions so I'm wondering if I can use
the same workstation to build, test, and support apps for both clients.
Thanks
Earl
| |
by: dick3425 |
last post by:
I used register the crystl32.ocx then put the active X control (Crystal Report Control) on the form name it Report1 and write the following code assigned to a button:
Private Sub cmdPrint_Click()
With Report1
.WindowShowRefreshBtn=True
.ReportFileName = "C:\SomeReport.rpt"
.Action=1
End With
End Sub
|
by: sukumaster |
last post by:
hello everybody
i hv created a tool bar by using macros in ms word 2003. i add some code for it in VB.i want to export that tool bar . because i have to send that tool bar to other sysems having ms word 2003
sukumar
|
by: socondc22 |
last post by:
my program is trying to use the babylonian algorithm in order to find the square root... i have a number for the number to have the square root taken of and also a number to run the loop... Whenever i go to print out the answer its rounding instead of giving me the answer i need... any help??
double num1, num2, the_root;
cout<< "Enter number to have square root taken of it\n";
cin>> num1;
cout<< "Enter number for how...
|
by: David K in San Jose |
last post by:
I'm using managed (CLR) C++ in VS2005 to create a Windows app that contains a form named "MyForm". In the code for that
form I'm trying to invoke some static functions by using an array of function pointers (delegates). I assume I need to
use the array< T keyword to allocate an array of delegates, and then initialize the array by setting each array
element to the pointers (handles) of the functions I'll be invoking.
I've been trying to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |