Page 1 of 1 1
Topic Options
#74963 - 2003-05-12 11:00 AM DELETE?
Anonymous
Unregistered


Hello everybody!
I´m trying to delete some files in Windows 98 via this script, but unfortunally with no succes:

SETCONSOLE("HIDE")
:MAIN
;DEL "c:\windows\temporary internet files\*.*"
DEL "c:\windows\tempor~1\*.*"
EXIT 0

I´ve been trying with boyh paths, but it won´t work.
Please help!

Top
#74964 - 2003-05-12 11:09 AM Re: DELETE?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what is the errorcode it reports?
DEL "c:\windows\tempor~1\*.*"
@error "-" @serror
_________________________
!

download KiXnet

Top
#74965 - 2003-05-12 01:53 PM Re: DELETE?
Anonymous
Unregistered


Errorcode?
I´ve tried following script, not really knowing what I´m doing. With no success ofcourse:

DEL "c:\windows\tempor~1\*.*"
@error "-" @serror

What I want is to delete the Internet temp files in any working way. It feels a bit rediculles not being able to solve this problem. It has been a while since I worked with Kix.
/Robert

Top
#74966 - 2003-05-12 02:06 PM Re: DELETE?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if you ran those 2 lines, what it showed on the console?
_________________________
!

download KiXnet

Top
#74967 - 2003-05-12 02:13 PM Re: DELETE?
Anonymous
Unregistered


Nothing!
The script runs trough as it has worked.
/R

Top
#74968 - 2003-05-12 02:13 PM Re: DELETE?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Nothing [Wink]

SETCONSOLE("HIDE")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#74969 - 2003-05-12 02:15 PM Re: DELETE?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if it returns nothing I assume he is running some other script and not the lines I gave him [Razz]
_________________________
!

download KiXnet

Top
#74970 - 2003-05-12 02:50 PM Re: DELETE?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The 'Temporary Internet Files' folder should not be cleaned through a brute force approeach but by setting the 'Empty Temporary Internet Files folder whne browser is closed' in 'Tools - Internet Options - Advanced' in Internet Explorer.
_________________________
There are two types of vessels, submarines and targets.

Top
#74971 - 2003-05-12 02:59 PM Re: DELETE?
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

The problem is that most of the directories has system attribute set. So it is possible,
that your DEL command can't find them.
A good alternative to solve it is by using the DELTREE command. It works great even
when some files are busy.

A possible call can be
code:
DELTREE /Y "c:\windows\tempor~1\."

For more ideas about cleaning your user environment see our
script cleanup.kix which you can find on our site.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.061 seconds in which 0.028 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