|
ACvsRM
新手上路

积分 18
发帖 10
注册 2005-9-16
状态 离线
|
『楼 主』:
用Net Use怎么能够建立映射啊?(具体情况见内)
使用 LLM 解释/回答一下
我用VC写了局域网络文件(数据都存在该服务器),本机打印的一个程序,由于需要访问网络的文件,所以在打开对话框内,就需要访问网络的机子(需要输入用户名和密码,才能进入该服务器),然后才能访问计算机的共享文件。(此时应该已经建立了IPC$的连接吧)。
由于文件在网络服务器上(ACAD的plt文件,需要用copy *.plt prn来打印,所以我需要用DOS……),我需要用net use z: \\server\data来映射盘符。
可是每回都显示
系统发生 1219 错误。
提供的凭据与已存在的凭据集冲突。
然后我有改命令为net use z: \\server\data "" /user:"administrator"
又显示
此命令的语法是:
NET USE ]
username]
username]
| ]
NET USE {devicename | *} /HOME
NET USE
我晕啊……不知道该怎么办了
各位DX救救我吧……
I wrote a program in VC for local network files (all data is stored on that server) and local printing. Since it needs to access network files, in the open dialog box, it is necessary to access the network machine (you need to enter a username and password to enter that server), and then you can access the shared files of the computer. (At this time, an IPC$ connection should have been established, right?).
Since the file is on the network server (ACAD's plt file, which needs to be printed with copy *.plt prn, so I need to use DOS...), I need to use net use z: \\server\data to map the drive letter.
But every time it shows
A system error 1219 occurred.
The provided credentials conflict with the existing credentials set.
Then I changed the command to net use z: \\server\data "" /user:"administrator"
And it shows again
The syntax of this command is:
NET USE ]
username]
username]
| ]
NET USE {devicename | *} /HOME
NET USE
I'm dizzy... I don't know what to do.
Dear DX, please help me.
|
|
2005-9-16 17:03 |
|
|
cheng059830
初级用户
 
积分 46
发帖 15
注册 2005-8-13
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
net use z: \\server\data /u:administrator "输入你的密码"
net use z: \\server\data /u:administrator "Enter your password"
|
|
2005-9-19 14:49 |
|
|
ACvsRM
新手上路

积分 18
发帖 10
注册 2005-9-16
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
请问一下:
我已经在windows下使用用户名和密码登陆局域网的数据服务器(已经建立了IPC$的连接?),
然后我需要启用dos下的copy命令将局域网上的plt文件打印。
听说如果打印局域网的文件需要将局域网的文件路径映射为本地虚拟盘符,然后在使用copy 映射的盘符: prn来打印……
我照着做了,可是在映射的时候出现了问题:
我用net use z: \\server\data来映射盘符。
可是每回都显示
系统发生 1219 错误。
提供的凭据与已存在的凭据集冲突。
请问DOS命令应该怎么写?如何解决我的问题。(好像net use 要建立一个连接,而我在windows下登陆局域网的数据服务器,已经建立的一个连接,是不是这个有冲突啊……??)
May I ask:
I have already logged in to the LAN data server using the username and password under Windows (IPC$ connection has been established?),
Then I need to use the copy command under DOS to print the plt file on the LAN.
I heard that if you want to print a file on the LAN, you need to map the file path on the LAN to a local virtual drive letter, and then use copy mapped drive letter: prn to print...
I followed this, but there was a problem when mapping:
I used net use z: \\server\data to map the drive letter.
But every time it shows
A system error 1219 occurred.
The provided credentials conflict with the existing credential set.
How should the DOS command be written? How to solve my problem. (It seems that net use needs to establish a connection, and I have already established a connection when logging in to the LAN data server under Windows. Is this conflicting...?)
|
|
2005-9-20 15:07 |
|
|
ACvsRM
新手上路

积分 18
发帖 10
注册 2005-9-16
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
然而我在DOS下(未建立任何IPC$连接的情况下)直接使用net use z: \\server\data,提示见内:系统发生 1326 错误。 登录失败: 未知的用户名或错误密码。
However, when I directly use net use z: \\server\data under DOS (without establishing any IPC$ connection), the prompt is as follows: The system has a 1326 error. Login failure: unknown username or wrong password.
|
|
2005-9-20 15:14 |
|
|
ACvsRM
新手上路

积分 18
发帖 10
注册 2005-9-16
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
此问题已经解决……汗一个:
当路径中包含空格时,须用""将路径全引住
由于我的服务器上的共享名为\\server\print data
所以命令应该为net use z: "\\server\print data"
This problem has been solved... Sweat: When the path contains spaces, the entire path must be enclosed in "" with "". Since the share name on my server is \\server\print data, the command should be net use z: "\\server\print data"
|
|
2005-9-20 16:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我也汗一个,想了半天都没有琢磨出原因,原来是这个样子的。
I also break out in a sweat. After thinking for a long time, I didn't figure out the reason. It turns out to be like this.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2005-9-21 18:22 |
|