Page 1 of 1 1
Topic Options
#414 - 1999-09-08 11:02 AM xcopy and logfile
Anonymous
Unregistered


I tried to pipe the output of xcopy to a file. But unfortunately I get the following error message:

C:\Test>kix32 test.kix
Script error : unknown command !.
shell "xcopy c:\winnt\*.* c:\wintmp\ /s /v /e >$LogFile 2>&1"

My test script looks like:

$LogFile = "c:\test\Test.log
shell "xcopy c:\winnt\*.* c:\wintmp\ /s /v /e >$LogFile 2>&1"
exit

I also tried without the parameters 2>&1 because there is already a question concerning this problem.

I general, I have the same problem when I'm using DOS NET USE or kix USE. I just want to send this outputs to a logfile. Is there someone how can help me?

Thank you for your answer.
Manuel

Top
#415 - 1999-09-14 10:31 AM Re: xcopy and logfile
Anonymous
Unregistered


This works for me using v3.60 on NT4 SP4:

$logfile = "test.log"
shell '%COMSPEC% /c xcopy bogus_file >$logfile 2>&1'

Test.log captures this output:

File not found - bogus_file
0 File(s) copied

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1343 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.047 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org