Bat file to run a .exe at the command prompt

后端 未结 11 1633
萌比男神i
萌比男神i 2020-12-04 08:09

I want to create a .bat file so I can just click on it so it can run:

svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:800         


        
11条回答
  •  猫巷女王i
    2020-12-04 08:48

    If you want to be real smart, at the command line type:

    echo svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/service >CreateService.cmd
    

    Then you have CreateService.cmd that you can run whenever you want (.cmd is just another extension for .bat files)

提交回复
热议问题