in reply to File opening in ASP/Perlscript
Try this:
<SCRIPT language="PerlScript"> use Win32::Script qw/WScript/; $Shell = WScript('Shell'); $Exec = $Shell->Exec('cat a.txt'); $window->document->write($Exec->StdOut->ReadAll); </SCRIPT>
It prints the content of a.txt file.
With ASP/Perscript, you mostly only need to know how to use Win32::OLE, Win32::Script or other related Win32 wrapper modules. Otherwise, Microsoft COMs (related to ASP or your work) are what you should learn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File opening in ASP/Perlscript
by Aristotle (Chancellor) on Jul 28, 2003 at 00:17 UTC | |
by chunlou (Curate) on Jul 28, 2003 at 01:58 UTC |