Kristofer Wolff wrote:
> 
> Hi all,
> 
> sorry for a basic-Perl question again, (like yesterday), but i've really got
> problems with file things.
> 
> Is it possible to delete a whole tree, with existing files in it and
> subdirectorys ?

File::Path::rmtree

> for my company i make a disk for the clients that dosn't have
> internet-access (some test pc-boxes) I made a script that downloads the cpan
> archiv, and made a Tk-Based installer, that shows the moduiles and the
> readme file. Now i fit this on a Cd-ROM.
> If I install a module, the folder will be copy in a tmp file
> ( by the way: is it posible to detect the temp folder on a local mashine
> automaticly ? for Win, Linux and Mac ?) and run the Makefile. Depends on the
> OS it runs make or Nmake to make test and install.
> Now: some modules have subdirs, and i want to delete the TMP folder after
> installing.

On Windoze, check the ENV for TMP or TEMP else use C:/temp or C:/tmp (check 
to see which one exists and if you have to, you could probably create one).
On UNIX/Linux /tmp is always there.
On Mac you're on your own. :)

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.todbe.com/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to