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-12 08:03
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » LAN Batch Backup View 751 Replies 5
Original Poster Posted 2009-08-17 06:38 ·  中国 广东 广州 白云区 电信
新手上路
Credits 5
Posts 5
Joined 2009-08-15 21:58
16-year member
UID 150428
Gender Male
Status Offline
I want to use a batch file to back up important materials on the LAN, with the extension xls
How should I write this command,
Floor 2 Posted 2009-08-18 05:53 ·  中国 广东 广州 电信
新手上路
初哥一明
Credits 11
Posts 6
Joined 2008-04-25 15:45
18-year member
UID 116936
Gender Male
Status Offline
Floor 3 Posted 2009-08-18 05:54 ·  中国 上海 普陀区 电信
初级用户
Credits 21
Posts 8
Joined 2009-02-28 03:14
17-year member
UID 140159
Gender Male
Status Offline
It's the same as a normal copy, just add a LAN address to the source or destination file.
Floor 4 Posted 2009-08-19 21:56 ·  中国 广东 广州 白云区 电信
新手上路
Credits 5
Posts 5
Joined 2009-08-15 21:58
16-year member
UID 150428
Gender Male
Status Offline
I can't do it with a normal copy.
I wrote my command like this: xcopy 路径、*.jpg . /s /d /y
It says invalid drive specification.
Do I need to create some kind of connection first when copying with this command?
Please advise!!
Floor 5 Posted 2009-08-20 13:06 ·  中国 北京 朝阳区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Create a null session

This is to map the shared folder as a drive on the local computer, which makes it more convenient to work with.

Actually I've already made two similar backup scripts before, I just keep forgetting to post the code.。。。

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2009-08-22 06:09 ·  中国 广东 广州 电信
新手上路
Credits 5
Posts 5
Joined 2009-08-15 21:58
16-year member
UID 150428
Gender Male
Status Offline
I created it like you said
still doesn't work
net use \\ip\ipc$ " " /user:" " create IPC null session

Is there a problem with how this was created
Forum Jump: