![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
The server is written partially in Visual Basic, partially in C++.
While I could look into changing the temp file names to be unique then deleting them afterward, I would much rather just learn to do it the right way. It'd do me some good for the future to do so. |
|
|
|
|
|
#12 | |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#13 | ||
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5
![]() |
Quote:
http://msdn.microsoft.com/library/de...deletefile.asp result: Quote:
__________________
http://www.white-scorpion.nl |
||
|
|
|
|
|
#14 |
|
Newbie
|
go to the shell and tpye ls or dir
![]() |
|
|
|
|
|
#15 |
|
Newbie
Join Date: May 2005
Posts: 2
Rep Power: 0
![]() |
FindFirstFile finds extra files
Hi,
I was wondering. Has anyone used FindFirstFile where FindFirstFile returns extra files that aren't part of the search string? I wrote a C/C++ console program that prompts for a search string and a path. I enter "*bc*" as the search string without the quotes then enter the path as "C:\". FindFirstFile returns many files that contain the letters "bc" but also returns 5 or 6 files that no letters of "bc" in them. I've been searching through the net to see if anyone has encountered this problem but to no avail. bronzefury |
|
|
|
|
|
#16 |
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5
![]() |
Could you post the source or at least that part of the source that creates your problem?
__________________
http://www.white-scorpion.nl |
|
|
|
|
|
#17 |
|
Newbie
Join Date: May 2005
Posts: 2
Rep Power: 0
![]() |
Hi,
The program is a console application. When the application is run, it will prompt Enter search string: To cause this problem, I enter bc Then, the application will ask you to enter a search path, like so.. Enter search path: Enter c:\ . The backslash is needed. The program will pass c:\*bc* to the FindFirstFile function call. It appends the asterisks prior to calling FindFirstFile. To help you see the output, a file called findfile.dat is produced. It contains the list of files found. I tried my best to have it indicate the incorrect files by prefixing incorrect files with "BAD MATCH ..." Please disregard the output where it prints BAD MATCH for files found with uppercase BC, bC, or Bc. I hope what I typed makes sense. I've attached the source code. Just rename file by removing the ".txt" extension. Thanks, Raul |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|