How can I run cmd from batch file and add text to line without executing? -


i want make file.bat should run jar when user press enter. bat must run , does't execute without user press enter. in cmd should printed:

java -jar crawler-1.0.jar 

a part user change this.text

how can this?

excuse me. think real goal of question is: "how prefill cmd.exe command-line input editable string", user may press enter key execute prefilled input, or edit in desired way. copied method below this post:

@if (@codesection == @batch) @then  @echo off rem enter prefill value in keyboard buffer cscript //nologo //e:jscript "%~f0" "java -jar crawler-1.0.jar" goto :eof  @end  wscript.createobject("wscript.shell").sendkeys(wscript.arguments(0)); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -