?
Solved

WIN32 - MoveFile and wildcard character(s)

Posted on 1997-05-31
3
Medium Priority
?
346 Views
Last Modified: 2013-12-28
I am using FindFirstFile, FindNextFile on an area originally written from a MAC. Some of these filenames contain the single wild card character '?'. When any attempt is made to access or rename this file using MoveFile the error 123L ERROR_INVALID_NAME is returned.

Is there any way to get round this from the NT side, by suppressing wild card treatment, or can the wild card characters be redefined in the registry??

0
Comment
Question by:pmead
[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
  • 2
3 Comments
 

Author Comment

by:pmead
ID: 1778705
Edited text of question
0
 
LVL 5

Accepted Solution

by:
y96andha earned 800 total points
ID: 1778706
Use the short file name for the file. WinNT always creates short file names for file names that wouldn't be valid under MS-DOS.

You can use the command dir /X  in a dos prompt to find the short filenames.

0
 

Author Comment

by:pmead
ID: 1778707
I hadn't realised that the alternate filename was something you could use in MoveFile. It works, thanks for your help.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

770 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