Answer the question
In order to leave comments, you need to log in
What is the easiest way to replace running an external command in cmd with a GUI program with Drag & Drop?
Some .cmd file has an external command with parameters to run, for which the path to the source file and the target is specified.
Tell me, what is the easiest way to replace such a cmd with a GUI program, preferably with Drag & Drop? To drag the file onto the form and in response the program, after executing an external command, a dialog for saving the file was opened. Designed for a user who does not know how to work with the command line.
Preferably with minimal dependencies and size, as well as open source.
Answer the question
In order to leave comments, you need to log in
you can drag and drop files in cmd.
Take and write the following
myscript.bat
echo "I want to execute %1 file"
pause
If you need to enter filenames, you can do so directly in the batch file.
Command
Will prompt you to enter a file name. You can enter manually, or you can drag any file from the explorer or from the desktop. The full name of the file will be in the filename variable:echo.%filename%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question