Solved

Wildcard in file name

Posted on 1997-04-13
1
534 Views
Last Modified: 2013-12-03
I have to write a function in a DLL for Windows NT 4.0 that can receive file name with wildcard (* and ?) and return a valid file name that can be use to do COPY(CopyFIle), DEL(DeleteFile) or RENAME (RenameFile).

I have no problem with DEL, but with COPY or RENAME I have to create a new file name from the wilcard and the name return by FindNextFile.

Is there a function like this in MFC or WIN32 API?

Thanks..
0
Comment
Question by:kasiopee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 10 total points
ID: 1334571
There are no features in MFC or the Win32 API that do this.  You'll need to do the string math yourself to develop a suitable target file name.

.B ekiM
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to have excel show file name on the title bar 4 68
Alternative to visual sourcesafe 2 153
SAPE.heur.AE935 Visual Studio 3 74
Please explain "Multi-Tenant Services" 5 123
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question