Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 25 May 2006 13:16:32 +0200,    group: microsoft.public.win32.programmer.tools        back       


How to verify a file-names correctness (qualify it)   
Hello All,

  I am in the need to check if a provided filename is acceptable to the OS.

Currently I could have "filenames" with all sorts of symbols embedded into
it (when such a thing happens I want to replace it with a default filename).

A funny thing : I extract the filename (from an UrlPath -part which is
returned after having applied CrackUrl) with PathFindFilename it has no
problems with returning a name having characters like "|" embedded into it
.....

I could ofcourse just try to open/create the file and check if an error is
returned, but that seems a too crude method.

I've currently seached several DLL's and the Web for an apropriate function.
Alas, no luck in finding an answer.

Any insights ?

Regards,
  Rudy Wieser
date: Thu, 25 May 2006 13:16:32 +0200   author:   R.Wieser lable

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us