Hello I Wish to run a python script, (I did not write), from a batch file I wrote.
I have 2 questions:
Running the command in the Command prompt works fine but from the batch file it fails with no error message; the python script creates an output file but it is not created when running through the batch file.
@echo off SET /P PrePRD=Enter the Pre Production file name: SET /P PostPRD=Enter the Post Production file name: Set /p IdColumn= Enter the Name of the ID column (ID - Original Input): cmd /k "cd /d C:\CSVComparison" C:\CSVComparison\csv_diff.py -src "%PrePRD%" -dest "%PostPRD%" -keys "%IdColumn%"
I wish to open the output file which python created using
Notepad++
, but I'm not sure it will work this way:start C:\Program Files (x86)\Notepad++\notepad++.exe C:\CSVComparison\results_details.json notepad++.exe C:\CSVComparison\results_details.json
Thank you,