Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSHFileOperation Pin
Miszou17-Jan-05 8:52
Miszou17-Jan-05 8:52 
I am trying to copy a group of files with the same name, but different extension, but I want to rename them during the copy operation.

If I use the command line, the syntax would be:

copy file.* newfile.*

which works perfectly.

Is there an elegant way to do this using SHFileOperation, which says that "Wildcard characters are not supported" in the destination.

I don't want to have to expand the wildcard in order to copy, and I *really* don't want to open a command window to run a DOS command either! Either I'm missing something obvious, or there seems to be some functionality missing from SHFileOperation....
GeneralRe: SHFileOperation Pin
Shog917-Jan-05 10:23
sitebuilderShog917-Jan-05 10:23 
QuestionWhere's iostream? Pin
Kyle Bishop17-Jan-05 7:58
Kyle Bishop17-Jan-05 7:58 
AnswerRe: Where's iostream? Pin
Tim Smith17-Jan-05 8:20
Tim Smith17-Jan-05 8:20 
AnswerRe: Where's iostream? Pin
Gerald Schwab17-Jan-05 9:22
Gerald Schwab17-Jan-05 9:22 
AnswerRe: Where's iostream? Pin
User 665817-Jan-05 9:23
User 665817-Jan-05 9:23 
GeneralRe: Where's iostream? Pin
Kyle Bishop17-Jan-05 10:04
Kyle Bishop17-Jan-05 10:04 
GeneralRe: Where's iostream? Pin
Christian Graus17-Jan-05 10:11
protectorChristian Graus17-Jan-05 10:11 
GeneralRe: Where's iostream? Pin
Kyle Bishop17-Jan-05 10:32
Kyle Bishop17-Jan-05 10:32 
GeneralRe: Where's iostream? Pin
Christian Graus17-Jan-05 10:36
protectorChristian Graus17-Jan-05 10:36 
AnswerRe: Where's iostream? Pin
Michael Dunn17-Jan-05 14:43
sitebuilderMichael Dunn17-Jan-05 14:43 
AnswerRe: Where's iostream? Pin
thompsons17-Jan-05 18:01
thompsons17-Jan-05 18:01 
GeneralRe: Where's iostream? Pin
Aamir Butt17-Jan-05 18:48
Aamir Butt17-Jan-05 18:48 
GeneralUsing filename from VC6 DirectX sample to C project Pin
rocman17-Jan-05 6:57
rocman17-Jan-05 6:57 
Generalcorrectly play WM_MOUSEWHEEL Pin
Member 166110217-Jan-05 6:35
Member 166110217-Jan-05 6:35 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
greba17-Jan-05 7:29
greba17-Jan-05 7:29 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
Member 166110217-Jan-05 9:29
Member 166110217-Jan-05 9:29 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
greba17-Jan-05 9:56
greba17-Jan-05 9:56 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
Member 166110218-Jan-05 0:05
Member 166110218-Jan-05 0:05 
GeneralRe: correctly play WM_MOUSEWHEEL Pin
Member 166110225-Jan-05 4:44
Member 166110225-Jan-05 4:44 
QuestionDesktopbackround handle? Pin
Nico Grüner17-Jan-05 6:21
sussNico Grüner17-Jan-05 6:21 
AnswerRe: Desktopbackround handle? Pin
Martin Koorts17-Jan-05 6:34
Martin Koorts17-Jan-05 6:34 
GeneralRe: Desktopbackround handle? Pin
Nico Grüner17-Jan-05 19:19
sussNico Grüner17-Jan-05 19:19 
GeneralRe: Desktopbackround handle? Pin
Martin Koorts17-Jan-05 23:07
Martin Koorts17-Jan-05 23:07 
GeneralATL service crashes when being stopped by system Pin
Cruelty17-Jan-05 5:42
Cruelty17-Jan-05 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.