Jump to content

Recommended Posts

Posted

This is an xcopy script.

$thedir = "c:\testdir"

runwait("C:\WINDOWS\SYSTEM32\XCOPY.EXE " & chr(34) & @MyDocumentsDir & CHR(34) & ' ' & chr(34) & $thedir & CHR(34) & ' /c/s/a/exclude:\exclude.txt >c:\backup.txt')

It will not work with the ( >c:\backup.txt) command output pipe.. It does not do the copy!

If I remove the pipe, the xcopy works.

Any ideas are appreciated very much...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...