I have a 2 line batch program. Very new to writing bat files.
This is my code,
C:\Users\X1231\AppData\Local\Continuum\Anaconda3\python.exe "\\ABCDE\A1\Python Testing Environment\Python Codes\Updated.py"
cmd/k
I want to pass X1231 as a variable inside that dynamically. If I open my cmd prompt and type in that echo %username%, it gives me the value that I have to pass it in.
For example, I want something like this -
set MyID = %username%
C:\Users\MyID\AppData\Local\Continuum\Anaconda3\python.exe "\\ABCDE\A1\Python Testing Environment\Python Codes\Updated.py"
cmd/k
But it is not working for me. Please help.
I tried on the command prompt -
cmd /k