I have written some short DOSKEYS that I've got in a .bat file. I have one that let's me run a python program from any directory as long as i know the python file's directory and I have one that lets me run my python file if I know the directory of my python installation. They are "runpy" and "cmdprogram" respectively. I can call runpy and give my python file's directory but cmdprogram doesn't work.
runpy:
DOSKEY runpy = C:\Python34\python $*
cmdprogram:
DOSKEY cmdprogram = C:\Users\ivar\cmd_programs\helloworld.py
Does anyone know what I'm doing wrong? Thanks for any help!
------Bonus------
The final idea is to be able to call "runpy cmdprogram helloworld.py" where cmdprogram has been altered to the following:
DOSKEY cmdprogram = C:\Users\ivar\cmd_programs\ $*
So this points me to the directory where I will be storing all my scripts and then I give the name of the file I want to use. Any ideas to get this to work are also greatly appreciated.