From: Konovalov, V. <vko...@sp...> - 2004-11-24 12:36:15
|
should work both of the followin: system('\Pocketmusic.exe \file.mp3'); system('\Pocketmusic.exe', '\file.mp3'); 'system' call could suspend perl, so you could better use ShellEx instead. > -----Original Message----- > From: Christoph Saas [mailto:Chr...@nw...] > Sent: Wednesday, November 24, 2004 3:29 PM > To: Konovalov, Vadim > Subject: Re: [perlce-user] Don't close console / play sound > > > > I got rid of the \xB4 error. I have been using the wrong ' > (accent instead > of apostroph). I still get no reaction to ShellEx but system > is working. > How can I give comandline options? > I tried > system('\Pocketmusic.exe \file.mp3'); > system('"\Pocketmusic.exe \file.mp3"'); > system('"\Pocketmusic.exe" "\file.mp3"'); > because I noted that I have to add " If the command contains spaces > e.g > system('"\SD Card\Pocketmusic.exe"'); is working. > > When adding the mp3 file to the command nothing happen, no > error message. > > gr CHR > > > > > Win32::ShellEx("\Windows\calc.exe",0); > > > no error message, but nothing happens ;-( > > > > no good guesses at the moment, unfortunately. > > but let us dig a bit more. > > Is your OS localized? > Yes, german. > > > > -- > Dipl. Ing. Christoph Saas Munich University of Technology > Phone: +49 89 289 28512 Institute for Network Theory > Fax: +49 89 289 28504 and Signal Processing > http://www.nws.ei.tum.de Arcisstr. 21 D-80290 Muenchen, Germany > |