I would like to run to run a script that opens GUI in which i press a start button which runs (opens, writes, runs) cmd.exe command line.
from tkinter import*
import sys, string, os
import subprocess
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.slogan = Button(frame,text="Start",command=self.start)
self.slogan.pack(side=LEFT)
def start(self):
subprocces.call([])
root = Tk()
app = App(root)
root.mainloop()
Command is following : "ConverterApp.exe" file1.x file1.y
ConverterApp is placed in a random desktop folder. What is does it converts one type of photo to another. And right now i have to use the command above for every photo, so i want to write pyhton program which will convert all .x files in folder to .y.
From my reaserch on the topic i have to use subprocess
, bit im kind of lost on how to use it.