copy command without flashing windows.

  • Thread starter Thread starter haode
  • Start date Start date
H

haode

I need to make a batch file for dts.
Server have to copy a file to the other server every 10 minutes.

when I schedule the job on the pushing server a flashing a dos window pops
and quits immediately.

is it possible to copy file without the flashing dos window?
 
haode said:
I need to make a batch file for dts.
Server have to copy a file to the other server every 10 minutes.

when I schedule the job on the pushing server a flashing a dos window pops
and quits immediately.

is it possible to copy file without the flashing dos window?

Hi

Use a vbscript to launch your batch file, it can hide it...

In the scheduler, use wscript.exe as executable and the path to the vbscript
file as parameter.

Put this in a file with file extension .vbs:


Set oShell = CreateObject("Wscript.Shell")
oShell.Run """C:\Some folder\Some.bat""", 0, True


(it is the second parameter with the value 0 that makes it hidden)

WSH 5.6 documentation (local help file) can be downloaded from here if you
haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
 

Ask a Question

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.

Ask a Question

Back
Top