Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WIN32 - MoveFile and wildcard character(s)

Posted on 1997-05-31
3
Medium Priority
?
358 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
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). …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

927 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