1. A win32file.ew question.

--=======AVGMAIL-3FD17EFA4497=======

------=_NextPart_000_0005_01C3BC23.1658C720

I want to use deleteFile() to delete some areas of of the WINDOWS directory eg
TEMP, COOKIES etc...
deleteFile() always returns 0 Faulse. When I delete files not in the windows
directory deleteFile() returns 1 true. Is there some way around this. This is the
code im currently using:

sequence temp,temp_path
temp_path = getTempPath()
temp = {}
if empt_temp = 1 then -- Just an enable or disable flag.
 for i = 1 to length(temp_path) by 1 do
     if temp_path[i] < 92 or temp_path[i] > 92 then
      temp &= temp_path[i]
      else temp = temp & 92 & 92
     end if
 end for
 temp = temp & "*.*"
 error = deleteFile(temp)
print(1,error) -- = 0
puts(1,"\n") 
puts(1,temp) -- = C:\\win98se\\temp\\*.*
end if
end procedure


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 2/12/03
------=_NextPart_000_0005_01C3BC23.1658C720
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I want to use deleteFile() to delete some areas of 
of the WINDOWS directory eg TEMP, COOKIES etc...</FONT></DIV>
<DIV><FONT face=Arial size=2>deleteFile() always returns 0 Faulse. When 
I&nbsp;delete&nbsp;files not in the windows directory deleteFile() returns 1 
true. Is there some way around this. This is the code im currently 
using:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>sequence temp,temp_path</FONT></DIV>
<DIV><FONT face=Arial size=2>temp_path = getTempPath()<BR>temp = {}<BR>if 
empt_temp = 1 then -- Just an enable or disable flag.<BR>&nbsp;for i = 1 to 
length(temp_path) by 1 do<BR>&nbsp;&nbsp;&nbsp;&nbsp; if temp_path[i] &lt; 92 or
temp_path[i] &gt; 92 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; temp &amp;= 
temp_path[i]<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else temp = temp &amp; 92 &amp; 
92<BR>&nbsp;&nbsp;&nbsp; &nbsp;end if<BR>&nbsp;end for<BR>&nbsp;temp = temp 
&amp; "*.*"<BR>&nbsp;error = deleteFile(temp)<BR>print(1,error) -- = 
0<BR>puts(1,"\n") <BR>puts(1,temp) -- = C:\\win98se\\temp\\*.*<BR>end if<BR>end 
procedure</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified Virus 
Free.<BR>Checked by AVG anti-virus system (<A 
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.547 /

------=_NextPart_000_0005_01C3BC23.1658C720--
--=======AVGMAIL-3FD17EFA4497=======
Content-Type: text/plain; x-avg=cert; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Description: "AVG certification"

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 28/11/03

--=======AVGMAIL-3FD17EFA4497=======--

new topic     » topic index » view message » categorize

2. Re: A win32file.ew question.

----- Original Message ----- 
From: Hayden McKay 
Subject: A win32file.ew question.



I want to use deleteFile() to delete some areas of of the WINDOWS directory eg
TEMP, COOKIES etc...
deleteFile() always returns 0 Faulse. When I delete files not in the windows
directory deleteFile() returns 1 true. Is there some way around this. This is the
code im currently using:

[snip]

The deleteFile() function cannot delete a file that is currently open or
read-only. Another application may have the file(s) opened.

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

3. Re: A win32file.ew question.

I filled my temp folder full of *.txt files only
with no other apps running and still deleteFile() returned 0
I think its something to do with the "show files" screen windows produces
for the windows directory protection.
My computer has a "show files" screen when double click on windows
directory.
----- Original Message ----- 
From: "Derek Parnell" <ddparnell at bigpond.com>
To: <EUforum at topica.com>
Subject: Re: A win32file.ew question.


>
>
> ----- Original Message ----- 
> From: Hayden McKay
> To: EUforum at topica.com
> Sent: Saturday, December 06, 2003 6:02 PM
> Subject: A win32file.ew question.
>
>
> I want to use deleteFile() to delete some areas of of the WINDOWS
directory eg TEMP, COOKIES etc...
> deleteFile() always returns 0 Faulse. When I delete files not in the
windows directory deleteFile() returns 1 true. Is there some way around
this. This is the code im currently using:
>
> [snip]
>
> The deleteFile() function cannot delete a file that is currently open or
read-only. Another application may have the file(s) opened.
>
> -- 
> Derek
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
> -- 
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.545 / Virus Database: 339 - Release Date: 28/11/03
>


---



--

new topic     » goto parent     » topic index » view message » categorize

4. Re: A win32file.ew question.

Hi Haydan,
    If i'm not wrong, deleteFile doesn't support wildcards (*.* or=20
*.txt), you should get the files in the directory using dir() function=20
and delete the files that are listed there. If there are subdirectories=20
you should use walk_dir().

Best Regards,
    Guillermo Bonveh=ED

Hayden McKay wrote:

>
>
>I filled my temp folder full of *.txt files only
>with no other apps running and still deleteFile() returned 0
>I think its something to do with the "show files" screen windows produces
>for the windows directory protection.
>My computer has a "show files" screen when double click on windows
>directory.
>=20=20
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: A win32file.ew question.

I tried that! but thnxs.

Is there a regeristry key for the "warning :-  show files screen"
windows 98 produces when I double click my windows folder. if there is
maybee I can set the warning screen to "disable" before the call to
deleteFile() and see what happens.

I cannot delete anything past the windows directory. Even nameing a file
without wildcards. I've tried walk_dir() methods and all other methods I can
think off. I can create, move, set dir, create file, chdir, rmdir but not
delete anything in "appdata" dir, namely the "windows" dir. The only way I
can delete anything past windows dir is by calling a DOS delete tool I made.
Wich uses dos.e I/O functions that successfully delete the C:\%windir%\temp
folder or any folder past %windir%.
The whole perpouse was to get rid of the DOS shell created by my windows
"cleandisk" app by  bypassing the call to "system()" so that that my windows
app would handle the delete procedure directly!
Nothing in %windir% can be delete, nor any folder.
I'v tried operasifile.e, win32fil.ew and winfile.ew
only DOS32 utils can delete my  %windir% stuff.
Maybee its the stealth protection my computer is running?
Who knows?
----- Original Message ----- 
From: "Guillermo Bonvehi" <knixeur at speedy.com.ar>
To: <EUforum at topica.com>
Sent: Sunday, December 07, 2003 4:50 AM
Subject: Re: A win32file.ew question.


>
>
> Hi Haydan,
>     If i'm not wrong, deleteFile doesn't support wildcards (*.* or=20
> *.txt), you should get the files in the directory using dir() function=20
> and delete the files that are listed there. If there are subdirectories=20
> you should use walk_dir().
>
> Best Regards,
>     Guillermo Bonveh=ED
>
> Hayden McKay wrote:
>
> >
> >I filled my temp folder full of *.txt files only
> >with no other apps running and still deleteFile() returned 0
> >I think its something to do with the "show files" screen windows produces
> >for the windows directory protection.
> >My computer has a "show files" screen when double click on windows
> >directory.
> >=20=20
> >
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
> -- 
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.548 / Virus Database: 341 - Release Date: 5/12/03
>


---



--

new topic     » goto parent     » topic index » view message » categorize

6. Re: A win32file.ew question.

I figured it out! please do respond to this subject.
I used a walk_dir() method.
deleteFile() is case sentitive eg: caps, smallcaps and have fixed procedure
that would'nt delete new.txt if
deleteFile(New.txt). The procedure was a listview of the temp files which
the delete_temp procedure uses to delete files.
All is good thnx  to Guillermo Bonveh for making me look real hard.
----- Original Message ----- 
From: "Hayden McKay" <hmck1 at dodo.com.au>
To: <EUforum at topica.com>
Subject: Re: A win32file.ew question.


>
>
> I tried that! but thnxs.
>
> Is there a regeristry key for the "warning :-  show files screen"
> windows 98 produces when I double click my windows folder. if there is
> maybee I can set the warning screen to "disable" before the call to
> deleteFile() and see what happens.
>
> I cannot delete anything past the windows directory. Even nameing a file
> without wildcards. I've tried walk_dir() methods and all other methods I
can
> think off. I can create, move, set dir, create file, chdir, rmdir but not
> delete anything in "appdata" dir, namely the "windows" dir. The only way I
> can delete anything past windows dir is by calling a DOS delete tool I
made.
> Wich uses dos.e I/O functions that successfully delete the
C:\%windir%\temp
> folder or any folder past %windir%.
> The whole perpouse was to get rid of the DOS shell created by my windows
> "cleandisk" app by  bypassing the call to "system()" so that that my
windows
> app would handle the delete procedure directly!
> Nothing in %windir% can be delete, nor any folder.
> I'v tried operasifile.e, win32fil.ew and winfile.ew
> only DOS32 utils can delete my  %windir% stuff.
> Maybee its the stealth protection my computer is running?
> Who knows?
> ----- Original Message ----- 
> From: "Guillermo Bonvehi" <knixeur at speedy.com.ar>
> To: <EUforum at topica.com>
> Sent: Sunday, December 07, 2003 4:50 AM
> Subject: Re: A win32file.ew question.
>
>
> > Hi Haydan,
> >     If i'm not wrong, deleteFile doesn't support wildcards (*.* or=20
> > *.txt), you should get the files in the directory using dir()
function=20
> > and delete the files that are listed there. If there are
subdirectories=20
> > you should use walk_dir().
> >
> > Best Regards,
> >     Guillermo Bonveh=ED
> >
> > Hayden McKay wrote:
> >
> > >
> > >I filled my temp folder full of *.txt files only
> > >with no other apps running and still deleteFile() returned 0
> > >I think its something to do with the "show files" screen windows
produces
> > >for the windows directory protection.
> > >My computer has a "show files" screen when double click on windows
> > >directory.
> > >=20=20
> > >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
> > -- 
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.548 / Virus Database: 341 - Release Date: 5/12/03
> >
>
> ---
>
>
> -- 
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
> -- 
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.548 / Virus Database: 341 - Release Date: 5/12/03
>


---



--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu