By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,825 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,825 IT Pros & Developers. It's quick & easy.

Running a txt file with other application in Python

P: 4
Hello experts

I have a txt file which should be run in another application. Manually, I should open the launcher of that application and then browse the txt file, then run it, and finally getting the results. However, I need to do it within Python. Lets say the txt file is afshin.txt and it should be run with abc.exe, the result files are also produced in the same directory as result.txt. I am looking forward to your answer.
May 14 '12 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 626
You would use subprocess.call to run "abc.exe afshin.txt" if I understand your question.
May 15 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.