|
Posted by sisyphus on November 7, 2007, 12:06 am
Please log in for more thread options
> Greetings. To get Term::Clui running (finally) on windows, I'll need
> to create a dot-directory $HOME/.clui_dir, i.e. a hidden-directory, in
> the user's home directory. Assume I can get $HOME with File::HomeDir,
> how should I portably create a hidden-directory within it ?
>
I thought I replied to this yesterday, but it hasn't shown up yet, so
I'll try again. (Apologies for any duplication):
system("mkdir .clui_dir");
system("attrib +H .clui_dir");
For a more perlish solution, perl also has a 'mkdir' function, so I
guess that could be used instead.
And Win32::File ( a non core module) has a 'SetAttributes' function
that could be used to make the directory hidden.
Cheers,
Rob
|