Advertisement
npocmaka

quote

May 10th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(int argc, char *argv[]) {
  5.    
  6.     if (argc != 1 ) {
  7.         printf ("Does do  nothing - always returns succes (ERRORLEVEL 0)\n \n \n"
  8.                     "  '.exe  [parameter [parameters]]      \n\n"
  9.                     "  parameter\tdisplays this message \n\n"
  10.                     "\'(single quotation mark) is intended to be used as a auxiliary \n"
  11.                     " utility for hybrid batch-vbscript scripts.As it does do \n"
  12.                     " nothing it can be used as a command delimiter in batch in\n"
  13.                     " this way - \'& - and at the same time it will be taken as a \n"
  14.                     " remark by VBScript.\n\n"
  15.                     "Example:\n\n\n"
  16.                     ":'----   start of the script -------\n\n"
  17.                     "\'&&@echo off && cls &&goto :end_vbs\n\n"
  18.                     "WScript.Echo \"Echo produced by VBSCript\"\n"
  19.                     "WScript.Quit\n\n"
  20.                     ":end_vbs\n"
  21.                     "\'& cscript /nologo /E:vbscript %%~f0\n"
  22.                     "\'& echo \"Echo produced by the batch script\"\n"
  23.                     "\'& pause\n\n"
  24.                     ":'----   end of the script -------\n\n");
  25.     }
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement