Solved

Wildcard in file name

Posted on 1997-04-13
1
535 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

705 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