DeleteFile() not working in XP

  • Thread starter Thread starter HD
  • Start date Start date
H

HD

Hello,

I have an app in Delphi7. In it, I have the window command DeleteFile(). It
works fine on our Windows 2000 Server, but does not work properly on our
Windows XP or 2003 Server.
The file name is "C:\temp\hd*.*" I want to delete all files starting with
"hd". And like I said, it works fine on Windows 2000 Server. But on our
other servers, it seems NOT to like the "*"... if I write
"C:\temp\hd_230293.doc", then it deletes that file, but it does not seem to
understand the "*".

Please Help,

H. Dumas
 
HD said:
Hello,

I have an app in Delphi7. In it, I have the window command
DeleteFile(). It works fine on our Windows 2000 Server, but does not
work properly on our Windows XP or 2003 Server.
The file name is "C:\temp\hd*.*" I want to delete all files starting
with "hd". And like I said, it works fine on Windows 2000 Server. But on
our other servers, it seems NOT to like the "*"... if I write
"C:\temp\hd_230293.doc", then it deletes that file, but it does not
seem to understand the "*".

Have you tried asking your question in one of the Delphi forums on
newsgroups.borland.com?
 
Back
Top