Jump to content
Sign in to follow this  
speedi

why won't my command line pipe work

Recommended Posts

speedi

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

Share this post


Link to post
Share on other sites
armoros

Hello speedi till you take a better help

Check

and

it may give some ideas


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×