Hello Simon, Thanks !! It works well. After I created the directory the function was executed and waited for any chances in the directory. After I deleted the directory and tried it again I got the same error as you did.
( The stupid thing is I created the directory before, but on the wrong place ..... :-) Greetings Bas Janssen The Netherlands ----- Original Message ----- From: "Simon Oliver" <[EMAIL PROTECTED]> To: "Bas Janssen" <[EMAIL PROTECTED]>; "Perl-Win32-Users (E-mail)" <[EMAIL PROTECTED]> Cc: "Christopher J. Madsen" <[EMAIL PROTECTED]> Sent: Wednesday, November 21, 2001 12:26 PM Subject: Re: Win32::ChangeNotify > Just tried print $^E as well and got: > > "Error creating Win32::ChangeNotify object: The directory name is > invalid at - line 11." > > So I went and created a directory 'c:\winnt\chdir' and it went well. > What does $^E return for you? > > -- > Simon Oliver > > use strict; > > require Win32::ChangeNotify; > > my $Path = "c:\\winnt\\chdir"; > my $WatchSubTree = 0; > my $Events = "FILE_NAME"; > > my $notify = Win32::ChangeNotify->new($Path,$WatchSubTree,$Events); > > die "Error creating Win32::ChangeNotify object: $^E" unless ref $notify; > > $notify->reset; > $notify->wait; > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users