Waithidden or runhidden when using DOS xcopy

(imported topic written by Marty23)

Hi;

I quess I have two questions.

  1. does it matter if I use the wiathidden or runhidden command if I’m doing a DOS copy of a file. I don’t really think so but wanted to ask.

  2. my action is working and I was wondering where to place the waithidden?

(Working Action) DOS xcopy C:\DIR\Filename \Server\share

Should it be

DOS waithidden c:\dir\Filename \Server\share

OR

waithidden DOS c:\dir\Filename \Server\Share

(imported comment written by jessewk)

Marty,

The waithidden and the DOS commands cannot be combined on the same line.

waithidden will launch an executable or batch/cmd script and try to hide the console window.

dos will open a console window and run whatever command follows without trying to had the console window.

If you are trying to hide the black box, try writing your command to a batch file and running that:

appendfile xcopy C:\DIR\Filename \Server\share
delete cp.bat
move __appendfile cp.bat
waithidden cp.bat

-Jesse

(imported comment written by Marty23)

OK, then does that mean I can run this?

waithidden xcopy “C:\Documents and Settings\Iscr*.*” /S/H \ServerName\ShareName\

(imported comment written by Marty23)

Hi Guys;

Never mind, I answered my own question!!

Marty