Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Portable dot-files (hidden-files) ?
- Peter Billam
November 5, 2007, 6:20 am
rate this thread
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 ?
AUS/TAS/DPIW/CIT/Servers hbt/lnd/l8 6233 3061 http://www.pjb.com.au
Pasaré, pasarémos dice el agua y canta la verdad contra la piedra
-- Pablo Neruda
Re: Portable dot-files (hidden-files) ?
I thought I replied to this yesterday, but it hasn't shown up yet, so
I'll try again. (Apologies for any duplication):
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.
- » ANNOUNCE: New release of Curses interface for Config::Model
- — Previous thread in » PERL Modules Announcements