Jump to content

batch of copy in icon on desktop....


Recommended Posts

Guest sal21
Posted

I have file .doc and .xls in \\myserverdir\mydir\..... and in c:\\mydir

\

in this two dir are the same number of file with the same name. in

effect i the same dir.

Now i want to create a desktop icon with a a batch DOS or other

language to:

copy from dir of server all files and paste this files in c:\mydir...

but no show the message "file existis do yoy want to overwrite yes/

no..."

Always in this batch or program controll if one of file in c:\mydir is

in use from the user and during the copy show message "attention i

cannot complete the operation of copy becaus you have a file in use,

close it and repeat the operation"

 

Tath is all.

 

Tks.

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: batch of copy in icon on desktop....

 

 

"sal21" <gss.italy@iol.it> wrote in message

news:1184359336.196962.119710@n60g2000hse.googlegroups.com...

>I have file .doc and .xls in \\myserverdir\mydir\..... and in c:\\mydir

> \

> in this two dir are the same number of file with the same name. in

> effect i the same dir.

> Now i want to create a desktop icon with a a batch DOS or other

> language to:

> copy from dir of server all files and paste this files in c:\mydir...

> but no show the message "file existis do yoy want to overwrite yes/

> no..."

> Always in this batch or program controll if one of file in c:\mydir is

> in use from the user and during the copy show message "attention i

> cannot complete the operation of copy becaus you have a file in use,

> close it and repeat the operation"

>

> Tath is all.

>

> Tks.

>

 

There are switches for all command line commands. You can see

them by typing

 

xcopy /? (for example)

 

at the Command Prompt. In your case I recommend you use xcopy.exe

with these switches: /Y /C, and perhaps also /D.


×
×
  • Create New...