Leser: 6
3 Einträge, 1 Seite |
1 2 3 4 5 6 7
my $myPlace = cwd(); my $filename = join('/',$myPlace,'test.xls'); my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); my $Book = $Excel->Workbooks->Open($filename); $Excel->Run("MyMacro"); $Book->Close;
1 2 3 4 5 6
use File::Spec; my $myPlace = cwd(); my $filename = File::Spec->catfile( $myPlace,'test.xls' ); print -e $filename ? "$filename existiert!\n" : "$filename existiert nicht!\n";
Gast+2007-11-19 11:18:05--Code (perl): (dl )my $filename = join('/',$myPlace,'test.xls');
1
2
use Win32; # wird bei Activestate automatisch geladen
$filename = Win32::GetFullPathName( $filename );
3 Einträge, 1 Seite |