Here's how I do it with passthru(): $cmd = "mycmd.exe Keyword(\"+$keyword[$k];|d:$origpath\")"; passthru($cmd); Thanks, John Ellingsworth http://mail.med.upenn.edu/~jellings/ -----Original Message----- From: Aidal [mailto:aidal@nospam.dk] Sent: Thursday, September 18, 2003 9:03 AM To: php-windows@lists.php.net Subject: passthru(), system(), exec() Hi everyone. I have absolutely no doubt that this has been asked and answered before somewhere, but anyway... How is it that you work around the problem with spaces in the file path when using passthru(), system() or exec() ? I have had the problem before a while back and I can't remember how I solved it back then. Any suggestions? /Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php