Solved

WIN32 - MoveFile and wildcard character(s)

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

738 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