Hi,
I needed a way to run a vbs script i was working on using Notepad++ and I all the time had to go to a cmd screen and run it.
Found a cool way to ease my pain, in the "Run" menu there is an option to save a command. Just type the following and a CMD window will open and will run the vbs in cscript.
=================================================================
cmd /k cd /d "$(CURRENT_DIRECTORY)" && Cscript "$(FILE_NAME)"
=================================================================
if you would like to leave the window open each time use the following:
=================================================================
cmd /c cd /d "$(CURRENT_DIRECTORY)" && Cscript "$(FILE_NAME)" && pause
=================================================================
Bye...
Cheers dude!
ReplyDeleteThats just made my day!
Google search took me here... This worked great, thank you!
ReplyDeleteI love you man. You and Google.
ReplyDeleteCheers Nice Thanks Man
ReplyDeleteThanks, this was useful. If anyone is using these commands from the nppexec plugin, adding "&& exit" (w/o quotes) to the end of your command will terminate the process.
ReplyDeleteThanks for the tip...
ReplyDeleteYou just have to make sure you save the file before running :-D
ReplyDeleteThank you, just what I needed!
ReplyDeleteMark
Thank you! Saved me countless hours
ReplyDelete