in reply to Illegal characters in windows filenames?

besides Win32::.*? functions there is also Win32API::File that looks quite confusing to me. It says to be using 'low level' functions so maybe also a way to get those short file names (like "PROGRA~1" for "Program Files") that should be useful for your task.
  • Comment on Re: Illegal characters in windows filenames?

Replies are listed 'Best First'.
Re: Re: Illegal characters in windows filenames?
by HamNRye (Monk) on Feb 11, 2004 at 20:22 UTC

    Thanks for the pointers monks... I'll report back here with any findings.

    Win32::File is for getting file attributes.... Compressed, hidden, read-only, etc... http://www.xav.com/perl/site/lib/Win32/File.html

    The other thought is just to use system commands to handle the globbing. Basically, if both file and directory tests fail, we do a system("mv $path$item $path$fixed_item_name") where I've made the fixed item name just not include the "?". Then I can at least find and manipulate the file.