Execute Command-Line Command from NSIS
问题 I'm creating my first NSI script and I'm just wondering if I can execute a command-line command from NSIS or should I just execute a batch file? I don't really know where to begin and other similar topics have gone a little over my head. 回答1: I would recommend taking a look at the nsExec plugin. I just recently had a situation where I needed to ping a server from inside an NSIS script, and the following code worked perfectly for me. nsExec::Exec '"C:\Windows\System32\PING.EXE" $URL' The