Solved

WIN32 - MoveFile and wildcard character(s)

Posted on 1997-05-31
3
343 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
Determining the an SCCM package name from the Package ID
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

724 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