Baidu ventilation, always eat the beginning of a space, resulting in code is not indented. The following methods can be used to resolve:
1, in Baidu Bar switch to the classic version
2. Replace the tabs and spaces in the code with the Unicode encoding format with the following script
Copy Code code as follows:
' cscript//nologo C:\test\test.vbs C:\test\test.bat
Set objFSO = CreateObject ("Scripting.FileSystemObject")
Set objfile = objFSO.OpenTextFile (wscript.arguments (0), 1,true)
Strall = Objfile.readall ()
Strtab = Replace (STRALL,CHR (9), "")
Strblank = Replace (Strtab, "", "&#" & "160;")
Call Setclipboardtext (Strblank)
Sub Setclipboardtext (StrText)
Set objIE = CreateObject ("Internetexplorer.application")
Objie.navigate ("About:blank")
ObjIE.Document.ParentWindow.ClipboardData.SetData "Text", StrText
Objie.quit
End Sub
How to use: ' cscript//nologo C:\test\test.vbs C:\test\test.bat