frank1321 Posted December 29, 2006 Share Posted December 29, 2006 I want a program to execute - I'm running windows and if I go to command prompt and type thisC:\Program Files\Text Command Line Version\textconvert (mything.doc) mynewoutputThe program then runs successfully.How do I run this through a php script - I'm guessing the exec() or shell_exec() or something like that - after looking long and hard and far and near, I've come up with nothing - Please HELP!! It seems like such a simple solution and I've got nothing! Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/ Share on other sites More sharing options...
trq Posted December 29, 2006 Share Posted December 29, 2006 You guessed correctly. Try [url=http://php.net/exec]exec[/url] or [url=http://php.net/system]system[/url]. Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149185 Share on other sites More sharing options...
frank1321 Posted December 29, 2006 Author Share Posted December 29, 2006 Well - there's step 1 - but what would I type as the command?ie - exec("something"); what is 'something'?Really struggling on this one - its funny how things at first seem so hard but once you get it - its so easy..feeling desparate Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149187 Share on other sites More sharing options...
trq Posted December 29, 2006 Share Posted December 29, 2006 I would assume...[code=php:0]exec('C:\Program Files\Text Command Line Version\textconvert (mything.doc) mynewoutput');[/code]but I don't work with windows. Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149188 Share on other sites More sharing options...
frank1321 Posted December 29, 2006 Author Share Posted December 29, 2006 Tried that - thanks for your help anyway...anyone else know what I would type in the exec() function in windows? ??? ??? Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149194 Share on other sites More sharing options...
trq Posted December 29, 2006 Share Posted December 29, 2006 Did you use single quotes? Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149205 Share on other sites More sharing options...
frank1321 Posted December 29, 2006 Author Share Posted December 29, 2006 Tried single quotes, double quotes - tried a lot really - but nothing seems to help - I am lost...hehe Link to comment https://forums.phpfreaks.com/topic/32147-run-a-program/#findComment-149579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.