Help A Desktop script or link to execute a drag-drop file.
Posted: 09 Jul 2010 06:46
I have various batch scripts in sundry places.
Via Windows GUI I can double click to launch, and when it has completed it closes.
I do NOT want it to close, I want it to stay open and available to rerun the command
I now have a single line script called CMDexe.BAT which simply invokes CMD.EXE
and that launches CMD.EXE with the current directory and drive set to where this script is held.
Then I can simply type the name of another batch file in the same folder and that is executed.
I can then use DOS shortcuts to repeat the command - I do not have to retype it.
I would like to avoid the need for a separate CMDexe.BAT to be held in each folder from which I may wish to run other scripts.
I would really like some sort of CMDexe.bat which can be placed on the desktop, and when any script is drag-dropped from any drive and folder it should launch CMD.EXE so it aims at where the drag-drop came from.
It would be a very welcome bonus if it could in addition launch the script.
This instance of CMD.EXE must stay open until the command "EXIT", and remain available to rerun the drag-drop script and or perform any other commands that DOS can do.
Regards
Alan
Via Windows GUI I can double click to launch, and when it has completed it closes.
I do NOT want it to close, I want it to stay open and available to rerun the command
I now have a single line script called CMDexe.BAT which simply invokes CMD.EXE
and that launches CMD.EXE with the current directory and drive set to where this script is held.
Then I can simply type the name of another batch file in the same folder and that is executed.
I can then use DOS shortcuts to repeat the command - I do not have to retype it.
I would like to avoid the need for a separate CMDexe.BAT to be held in each folder from which I may wish to run other scripts.
I would really like some sort of CMDexe.bat which can be placed on the desktop, and when any script is drag-dropped from any drive and folder it should launch CMD.EXE so it aims at where the drag-drop came from.
It would be a very welcome bonus if it could in addition launch the script.
This instance of CMD.EXE must stay open until the command "EXIT", and remain available to rerun the drag-drop script and or perform any other commands that DOS can do.
Regards
Alan