Convert batch file to vbscript

I need to convert a batch file to vbscript, but I am not familiar with both. If I can understand what is going on in a batch file, I can easily develop vbscript. The problem is that the batch file executes several cscript commands that must have syntax

cscript [script name] [host options] [script arguments]

However, no matter who writes the batch file, it does not use it in the standard way, so if someone can explain the use of the command, I can solve the rest.

Example string: file name and actual URL removed for security

cscript file.vbs -a -r url -h url -o raw
+3
source share
4 answers

cscript file.vbs. script, WScript.Arguments.Item(x), x - , 0 .

http://technet.microsoft.com/en-us/library/ee156618.aspx

cscript, cscript , /(,//B)

+1

vbscript . chm, "", , Wscript.Arguments .

0

.vbs? , , . , vb script cscript.

0

For help with the cscript command, you can enter the following command in the command window

cscript /?

0
source

Source: https://habr.com/ru/post/1729477/


All Articles