From: DH <cra...@ya...> - 2004-01-19 06:30:45
|
--- "Graciliano M. P." <gmp...@te...> wrote: > How to execute a file type on Win32? > > What I want is not to call an executable, but a file: > > Wx::ExecuteCommand( 'files\data.xls' , undef , undef ) ; A filename is not a command. try 'cmd.exe /c start files\data.xls' I'd say try Wx::Shell, but that's not wrapped :( > But this doesn't work! > > If we do: > > open (CMDLOG, '| files\data.xls') ; > > it works, but a new console window opens. that's cause you're running through the shell (that's why the console window opens) __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |