Solved

Wildcard in file name

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.Net Loading Word 11 103
Dir function fails on mapped drives 28 132
Best way to accomplish this task? 3 87
Convert GUI app into console app for Win32 Env 5 100
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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