Page 1 of 1 1
Topic Options
#13445 - 2001-10-24 12:36 AM >nul
The Corsham School Offline
Getting the hang of it

Registered: 2001-01-11
Posts: 55
Loc: UK Wilts
Hi i'm trying to hide the output the Xcopy on win98 pcs

i'm trying

code:
SHELL "deltree -y C:\windows\desktop\*.* >NUL"  


but it dosnt seam to work?
any ideas?


Adam Witwicki
The Corsham School

Top
#13446 - 2001-10-23 01:30 PM Re: >nul
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Boy, you really are confused. Your subject text says XCOPY but your sample code is for DELTREE.

Assuming you meant XCOPY, it has a /Q switch to keep it quiet. Give that a go.

Top
#13447 - 2001-10-23 02:21 PM Re: >nul
The Corsham School Offline
Getting the hang of it

Registered: 2001-01-11
Posts: 55
Loc: UK Wilts
Opps
er Xcopy and DELTREE please

Adam

Ps thanks for the /q switch

Top
#13448 - 2001-10-23 02:55 PM Re: >nul
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Plus, since redirection is a feature of the command shell, one has to use %comspec%, like this:

SHELL "%comspec% /c deltree -y C:\windows\desktop\*.* >NUL 2>NUL"

-Shawn

Top
#13449 - 2001-10-23 03:37 PM Re: >nul
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Correct you are Shawn, and the same applies to ' | ' pipe.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13450 - 2001-10-23 03:45 PM Re: >nul
The Corsham School Offline
Getting the hang of it

Registered: 2001-01-11
Posts: 55
Loc: UK Wilts
Thanks Shawn, i didnt think that would work for win98, but it does


Thanks again
Adam Witwicki

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 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.024 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