cmd - Batch script - /* and */ what does it do? -
i have here sample code use (came stackoverflow thread). don't have question on how runs.
i wondering /*
, */
symbols for?
@set @a=0 /* ::modify input file , output file @cscript //nologo //e:jscript "%~f0" < names.txt > output.txt ::modify output file , result file :: @move /y output.txt names_result.csv type output.txt > names_result.csv ::end @goto :eof */ wscript.stdout.write(wscript.stdin.readall().replace(/\t/g,","));
this way embed java script in cmd file. see here. trick make js believe it's defining set
, , after /*
*/
gobble cmd lines have been used run script. read 2 times, once cmd shell , once js engine.
Comments
Post a Comment