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.

2007-07-16, 18:12

HansV

Re: batch in icon

Yes, that has exactly the same effect.

2007-07-17, 05:02

JohnGray

Re: batch in icon

<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.