Hello everyone!
I am currently making a batch script for backing up files for operating system configuration. The desired effect is: place the batch script in any folder and run it, then it copies the files listed in the file path in the batch script to the current folder, and retains the original file path.
===============
@echo off
@eho c:\IBM\123\456\789.nsf
@eho c:\IBM\abc\cd.id
@eho c:\Lotus\abc\cd.js
:This line of code is the key, which is to COPY the above two files to the current folder, and these 2 files are copied to the directory under the current folder + original path. ???
exit
================
Example:
After running this batch script in the bak folder under the root directory of drive E, the following effect will be produced:
E:\bak\IBM\123\456\789.nsf
E:\bak\IBM\abc\cd.id
E:\bak\Lotus\abc\cd.js
After running this batch script in the load folder under the root directory of drive F, the following effect will be produced:
F:\load\IBM\123\456\789.nsf
F:\load\IBM\abc\cd.id
F:\load\Lotus\abc\cd.js
Please ask everyone how to write the batch script? Both bat or vbs are acceptable, thank you!
[ Last edited by flying008 on 2008-4-15 at 12:35 PM ]
I am currently making a batch script for backing up files for operating system configuration. The desired effect is: place the batch script in any folder and run it, then it copies the files listed in the file path in the batch script to the current folder, and retains the original file path.
===============
@echo off
@eho c:\IBM\123\456\789.nsf
@eho c:\IBM\abc\cd.id
@eho c:\Lotus\abc\cd.js
:This line of code is the key, which is to COPY the above two files to the current folder, and these 2 files are copied to the directory under the current folder + original path. ???
exit
================
Example:
After running this batch script in the bak folder under the root directory of drive E, the following effect will be produced:
E:\bak\IBM\123\456\789.nsf
E:\bak\IBM\abc\cd.id
E:\bak\Lotus\abc\cd.js
After running this batch script in the load folder under the root directory of drive F, the following effect will be produced:
F:\load\IBM\123\456\789.nsf
F:\load\IBM\abc\cd.id
F:\load\Lotus\abc\cd.js
Please ask everyone how to write the batch script? Both bat or vbs are acceptable, thank you!
[ Last edited by flying008 on 2008-4-15 at 12:35 PM ]
