Open neilmahaseth opened 7 years ago
This works opn('H:\command.bat');
but this just opens a command prompt without executing the the target bat file.
opn('H:\command.bat', {app: 'cmd'});
Tested on windows 10
As a workaround to the problem the following code allowed the use of app and arguments.
opn('',{app:['cmd.exe','/c start H:\command.bat "argument"']});
This works opn('H:\command.bat');
but this just opens a command prompt without executing the the target bat file.
opn('H:\command.bat', {app: 'cmd'});
Tested on windows 10