China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-29 06:42
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to establish mapping with Net Use? (Specific situation is as follows) View 2,184 Replies 5
Original Poster Posted 2005-09-16 17:03 ·  中国 湖北 武汉 电信
新手上路
Credits 18
Posts 10
Joined 2005-09-16 16:47
20-year member
UID 42563
Status Offline
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.
Floor 2 Posted 2005-09-19 14:49 ·  中国 广西 梧州 电信
初级用户
Credits 46
Posts 15
Joined 2005-08-13 12:11
20-year member
UID 41615
Status Offline
net use z: \\server\data /u:administrator "Enter your password"
Floor 3 Posted 2005-09-20 15:07 ·  中国 湖北 武汉 电信
新手上路
Credits 18
Posts 10
Joined 2005-09-16 16:47
20-year member
UID 42563
Status Offline
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...?)
Floor 4 Posted 2005-09-20 15:14 ·  中国 湖北 武汉 电信
新手上路
Credits 18
Posts 10
Joined 2005-09-16 16:47
20-year member
UID 42563
Status Offline
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.
Floor 5 Posted 2005-09-20 16:00 ·  中国 湖北 武汉 电信
新手上路
Credits 18
Posts 10
Joined 2005-09-16 16:47
20-year member
UID 42563
Status Offline
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"
Floor 6 Posted 2005-09-21 18:22 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
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.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Forum Jump: