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-08-07 18:56
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How can a program do this: Start -> Run -> \\ip\foldername View 840 Replies 7
Original Poster Posted 2008-03-10 15:37 ·  中国 广东 佛山 电信
初级用户
Credits 28
Posts 11
Joined 2008-03-09 12:39
18-year member
UID 112454
Gender Male
Status Offline
The remote shared folder has an account and password,

I tried using net use before, but it didn't work.
What I mean is, whether I enter this in cmd:
net use \\ip 密码/user:用户名

or use a program (VB's shell)
to run net use \\ip 密码/user:用户名

it always shows logged in, but I still can't open the files. Because it still didn't log in successfully.

[ Last edited by yc1998 on 2008-3-10 at 04:32 PM ]
Floor 2 Posted 2008-03-10 15:47 ·  中国 福建 福州 连江县 联通
高级用户
★★
Credits 581
Posts 277
Joined 2006-12-23 05:10
19-year member
UID 74328
Gender Male
Status Offline
net use doesn't work?

Then what's the use of Start->Run-> ?

If you want to run a CMD command, try this instead (replace "net use /?" with the command you want to run)
Start->Run->cmd /k net use /?
Floor 3 Posted 2008-03-10 15:48 ·  中国 广东 汕头 潮阳区 电信
高级用户
★★★
DOS时空
Credits 713
Posts 348
Joined 2007-02-10 13:59
19-year member
UID 79169
Gender Male
Status Offline
It needs a username and password.
Floor 4 Posted 2008-03-10 15:59 ·  中国 广东 佛山 电信
初级用户
Credits 28
Posts 11
Joined 2008-03-09 12:39
18-year member
UID 112454
Gender Male
Status Offline
What I mean is, whether I enter this in cmd:
net use \\ip 密码/user:用户名

or use a program (VB's shell)
to run net use \\ip 密码/user:用户名

it always shows logged in, but I still can't open the files. Because it still didn't log in successfully.

[ Last edited by yc1998 on 2008-3-10 at 04:32 PM ]
Floor 5 Posted 2008-03-10 16:16 ·  中国 福建 福州 连江县 联通
高级用户
★★
Credits 581
Posts 277
Joined 2006-12-23 05:10
19-year member
UID 74328
Gender Male
Status Offline
Probably the password or permissions were changed
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
yc1998 +2 2008-03-25 15:15
Floor 6 Posted 2008-03-11 05:31 ·  中国 广东 广州 番禺区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
yc1998 +2 2008-03-25 15:16
49206C6F766520796F752067757973 54656C3A3133383238343036373837
Floor 7 Posted 2008-03-11 09:51 ·  中国 上海 普陀区 电信
高级用户
★★★
Credits 916
Posts 377
Joined 2004-03-08 00:00
22-year member
UID 19523
Gender Male
Status Offline
What system is it? Maybe XP has forced Guest login enabled. I usually change it to the traditional local user login mode.
Floor 8 Posted 2008-03-11 20:15 ·  中国 广东 佛山 电信
初级用户
Credits 28
Posts 11
Joined 2008-03-09 12:39
18-year member
UID 112454
Gender Male
Status Offline
everest79
Thanks, the command worked. Turns out there was an &&pushd
I don't know what that is, and then there was another address after it
Forum Jump: