I'm not a batch file expert, but I think that is beyond the scope of batch files.
See <post:=643,607>post 643,607</post:> - that should work in a VBScript file.
I'm not a batch file expert, but I think that is beyond the scope of batch files.
See <post:=643,607>post 643,607</post:> - that should work in a VBScript file.
Yes, that has exactly the same effect.
<hr>controll if in c: is present dest dir and if not create it before to copy.<hr>If what you are asking is that the directory "C:MODULI GARANZIE" should be created if it is not already present, then you can simply use the command<pre>MD "C:MODULI GARANZIE"</pre>
If the directory does not exist it will be created. If it already exists it will give you a message to say that already exists. If you want to prevent the message being issued, you can use something like <pre>IF NOT EXIST "C:MODULI GARANZIE" MD "C:MODULI GARANZIE"</pre>
which only attempts to create the directory if it is not already present.
<font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>
Ita, esto, quidcumque...
Why this bat copy also dir and not the .doc in folder?
GCD01F4500DATIPUBBLICAxxcopyFILE_BATCHxcopy.exe /e /v /y GCD01F4500DATIPUBBLICAMODULI_GARANZIE*.DOC "C:MODULI GARANZIE"
in effect i want to copy only all .doc and not sub dir...
Why have you placed xcopy.exe in GCD01F4500DATIPUBBLICAxxcopyFILE_BATCH? It is part of Windows, so you don't need to put it in a specific folder.
Try omitting the /e parameter.
It is the <big>/e</big> switch you have included - see MSKB 289483: Switches That You Can Use with Xcopy and Xcopy32 Commands.
tKS. WORK...
Tks for link, is very good...