【问题标题】:How to create a batch file that starts an executable with parameters如何创建使用参数启动可执行文件的批处理文件
【发布时间】:2018-04-12 06:30:09
【问题描述】:

我正在尝试创建一个打开 RethinkDB 数据库的批处理文件。我需要像这样执行它

rethinkdb.exe  -http-port <portno>

如何从批处理文件中执行此操作?我只是想启动脚本。端口将在脚本中硬编码。

我试过了:

@echo off
cd /d "C:\Users\username\Desktop\personal\wsrethink"
start "" rethinkdb /path:"C:\Users\username\Desktop\personal\wsrethink\rethinkdb.exe" --http-port 9300
timeout 10
pause

【问题讨论】:

    标签: batch-file command-line rethinkdb


    【解决方案1】:

    试试这个

    @echo off
    start "" /D "C:\Users\username\Desktop\personal\wsrethink" rethinkdb.exe --http-port 9300
    timeout 10
    pause
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      相关资源
      最近更新 更多