Convert the code in vbs or ASP into one sentence

Source: Internet
Author: User

The result shows that table does not work.
Similar to If xx = 1 then YY = 2...

// This script supports drag and drop. You can also use cscript change. vbs XX. asp in the command line.CopyCodeThe Code is as follows: on error resume next
Set Arg = wscript. Arguments
If Arg. Count = 0 then wscript. Quit
'Code by netpatch
'Enjoy it
Set FSO = Createobject ("scripting. FileSystemObject ")
Set file = FSO. opentextfile (ARG (0), 1, false,-2)
Set files = FSO. opentextfile (ARG (0) & ". vbs", 2, true)
Do While file. atendofstream <> true
Szbuf = file. Readline
Szbuf = Replace (szbuf, CHR (9 ),"")
Findnum = instr (lcase (szbuf), "then ")
If findnum> 0 then
Findnum = findnum + 3
If Len (szbuf)> findnum then
Szbuf = szbuf & ": end if"
End if
End if
Files. Write szbuf &":"
Loop
File. Close
Files. Close
Set FSO = nothing
Wscript. Echo "OK! "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.