View Single Post
Old 31st October 2018, 15:41   #3
Junior Member
Join Date: Oct 2018
Posts: 7
I don't think I understand your suggestion. I replaced the line containing ExecWait with these two lines:
MessageBox mb_ok '"$PLUGINSDIR\SQLCMD\sqlcmd.exe" -S Cmp-000000\SQLEXPRESS -i createdbonfile.sql -o output.txt'
ExecWait '"cmd.exe" /K $PLUGINSDIR\SQLCMD\sqlcmd.exe -S Cmp-000000\SQLEXPRESS -i $PLUGINSDIR\SQLCMD\createdbonfile.sql -o output.txt'

Doing this I got pretty much the same outcome. Of course, I had to indicate the location of createdbonfile.sql since I was working from the directory where cmd.exe was located.
benjasperson is offline   Reply With Quote