W
Wensi Peng
Hello,
How to have a VBscript or batch file to copy a hidden file from a server to
a remote server?
Thanks,
Wensi
How to have a VBscript or batch file to copy a hidden file from a server to
a remote server?
Thanks,
Wensi
In said:Hello,
How to have a VBscript or batch file to copy a hidden file from a
server to a remote server?
I tried it and how to suppress the question F or D ? I know
boot.ini is a file.
I want xcopy run in a batch file.
I want the destination file removed hidden after copying. How?
Also how about using robocopy to do the same job?
Example:
E:\Documents and Settings\Max>xcopy /h /i c:\boot.ini c:\boot2.ini
Does C:\boot2.ini specify a file name
or directory name on the target
(F = file, D = directory)?
Copied and tweaked from portable script center:Wensi said:Hello,
How to have a VBscript or batch file to copy a hidden file from a server to
a remote server?
In said:My fist question was:
when I run the command "xcopy /h /i c:\boot.ini c:\boot2.ini" I am
prompted if boot2.ini is a File or Directory.
It requires interactive work. How can I suppress the question?
Looks like you didn't even try one of Marks work arounds.Thanks for your post.
I prefer to use xcopy. The problem is I am prompted to ask if a destination
is a file or directory.
I wan to suppress the interactive question in a batch file.
In said:in message
: In microsoft.public.win2000.cmdprompt.admin Wensi Peng wrote:
:
: One way may be
: echo/F|xcopy /h c:\boot.ini c:\boot2.ini
: Attrib -s -h -r c:\boot2.ini
He wants it hidden after copying so only the first line is needed
and boot.ini is not read-only, just system and hidden.
Wensi Peng said:Thanks for your post.
I prefer to use xcopy. The problem is I am prompted to ask if a
destination
is a file or directory.
I wan to suppress the interactive question in a batch file.
Thanks,
Wensi
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.