1.

Solve : Batch File to Run Python Script?

Answer»
I need to MAKE a batch file that will ask for a "from" filename and a "to" file NAME using a python script.

Example of script:

python "python script file name" "from file name" "to file name" PID

I would also like for batch file PROMPT for another file.

Any help would be appreciated...Thank You!Im not sure what you are asking for here, do you just want to get user input using a batch file, if so, all you need is something like this -
Code: [Select]Set /P Scriptname=[Your script]
Set /P InputName=[Name of Input file]
Set /P OutputName=[Name of Output file]

python %Scriptname% %InputName% %OutputName% PID
If this isnt what you wanted, let us know

Graham
Many thanks Graham, it works like CHAMP. I knew it was something simple.

garlin


Discussion

No Comment Found