Solved

WIN32 - MoveFile and wildcard character(s)

Posted on 1997-05-31
3
329 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 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 book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now