[nfbcs] python and batch files

Ryan Mann rmann0581 at gmail.com
Fri May 5 02:45:54 UTC 2017


I just tried and I was able to run a batch file using the call function from the subprocess module.
From subprocess import call
Call(["test.bat"])
In my test.bat file, I just made it print something to see if it worked.
Echo This is a test.


Sent from my iPhone

> On May 4, 2017, at 9:09 PM, Jessica Dail via nfbcs <nfbcs at nfbnet.org> wrote:
> 
> Hello,
> 
> I'm having trouble running batch files of python scripts.
> 
> What can I do?
> 
> When I try to run the program, by pressing enter on it, it opens the file in
> notepad, in addition to opening a blank terminal window.
> 
> 
> 
> Any help would be greatly appreciated.
> 
> 
> 
> Thanks,
> 
> Jessica
> 
> 
> 
> 
> 
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/rmann0581%40gmail.com




More information about the NFBCS mailing list