中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-17 13:09
47,814 topics / 349,905 posts / today 2 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » How to establish mapping with Net Use? (Specific situation is as follows)
Printable Version  2,228 / 5
Floor1 ACvsRM Posted 2005-09-16 17:03
新手上路 Posts 10 Credits 18
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.
Floor2 cheng059830 Posted 2005-09-19 14:49
初级用户 Posts 15 Credits 46
net use z: \\server\data /u:administrator "Enter your password"
Floor3 ACvsRM Posted 2005-09-20 15:07
新手上路 Posts 10 Credits 18
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...?)
Floor4 ACvsRM Posted 2005-09-20 15:14
新手上路 Posts 10 Credits 18
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.
Floor5 ACvsRM Posted 2005-09-20 16:00
新手上路 Posts 10 Credits 18
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"
Floor6 Climbing Posted 2005-09-21 18:22
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023