Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char *argv[]) {
- if (argc != 1 ) {
- printf ("Does do nothing - always returns succes (ERRORLEVEL 0)\n \n \n"
- " '.exe [parameter [parameters]] \n\n"
- " parameter\tdisplays this message \n\n"
- "\'(single quotation mark) is intended to be used as a auxiliary \n"
- " utility for hybrid batch-vbscript scripts.As it does do \n"
- " nothing it can be used as a command delimiter in batch in\n"
- " this way - \'& - and at the same time it will be taken as a \n"
- " remark by VBScript.\n\n"
- "Example:\n\n\n"
- ":'---- start of the script -------\n\n"
- "\'&&@echo off && cls &&goto :end_vbs\n\n"
- "WScript.Echo \"Echo produced by VBSCript\"\n"
- "WScript.Quit\n\n"
- ":end_vbs\n"
- "\'& cscript /nologo /E:vbscript %%~f0\n"
- "\'& echo \"Echo produced by the batch script\"\n"
- "\'& pause\n\n"
- ":'---- end of the script -------\n\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement