PC Review


Reply
Thread Tools Rate Thread

DeleteFile() not working in XP

 
 
HD
Guest
Posts: n/a
 
      16th Feb 2007
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


 
Reply With Quote
 
 
 
 
Bill Bradshaw
Guest
Posts: n/a
 
      16th Feb 2007
HD wrote:
> 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?

--
<Bill>

Brought to you from Anchorage, Alaska.


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      16th Feb 2007
I recommend you repost in a Delphy newsgroup.


"HD" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer.FileSystem.DeleteFile not working over network Julia B Microsoft ASP .NET 7 25th Aug 2009 02:31 PM
DeleteFile Method don Microsoft Excel Programming 2 5th Jun 2006 04:56 AM
object.DeleteFile =?Utf-8?B?eW91c2Vm?= Microsoft Access 2 28th Mar 2006 12:13 PM
Can't DeleteFile from system32 Microsoft Windows 2000 Active Directory 0 17th Feb 2005 11:15 PM
DeleteFile() returning ERROR_FILE_NOT_FOUND Andy Nugent Microsoft Windows 2000 File System 1 22nd Sep 2004 11:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.