View Single Post
Old 12th August 2020, 01:04   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
PHP Code:
Section
InitPluginsDir
FileOpen 
$"$PluginsDir\test.cmd" w
FileWrite 
$"@echo off$\r$\n"
FileWrite $"ping localhost$\r$\n"
FileClose $0
nsExec
::Exec '"$sysdir\cmd.exe" /C "$PluginsDir\test.cmd"'
Pop $0
DetailPrint 
"Returned $0"
SectionEnd 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote