''* Function: Use vbs to read all values under the specified node in the INI file.'* Input parameter: inipath: INI file address'* Initypes: The INI file contains values between "[" and "]".'* Return value: array composed of the values of the field found'* Prepared by: chenyb'* Prepared on:'* Other Instructions: The fol
The simulation terminal securecrt I use requires a script that supports vbs. I need to implement the following functions:First, the text file is in: D: \ 100.txtThe text file content is:9 0, Randy,9 1, Jeff,9 2, sameul,Now we need a loop to automatically execute related parameters. The loop needs to call two variables TN and name.Assign the value before the first
Recently, you need to use Sourceinsight to view the project code developed under Linux, and we know that the default encoding format for text files in Linux systems is UTF-8, and the default encoding format for Windows Chinese is Gb2312. The coding format in the system is different, the key is sourceinsight unexpectedly do not support UTF-8, resulting in the project code in the Chinese comments all garbled!
Since Sourceinsight does not support UTF-8 encoded files, we have to find a way to conve
Using batch files and VBS scripts to automate Web site video recording
Now television stations basically have their own portals, we can make full use of the advantages of the network to expand the impact of local television stations. In fact, the practice of hanging the daily ace of local TV shows on the website has become one of the necessary steps to build a television website. But then the problem is: The daily need for manual recording process
'====================
Lan
File Automatic Backup vbs script ============================
'
'Condition: 10.97.1.x xcopy/xcopy belongs to Adminstrator.
'The directory where the shared backup file is located gives xcopy users full control!
'After running, there are two processes in the management process: wscript.
EXE , Ping.exe
'Use the date as the log
This script demonstrates how to save information to a xml file with the use of MSXML. The example xml file is used for the photo album on the site.
Copy codeThe Code is as follows: '*************************************** **************************
'** Script: CreateXML. vbs
'** Version: 1.0
'** Created: 01/12/2009 PM
'** Author: Adriaan Westra
'** E-mail:
'** Pu
and Windows does not have an existing more useful segmentation tool, so I use VBS to do a text file segmentation tool, and you share. The script code is as follows:
Copy Code code as follows:
Option Explicit
' This script is only used to split text files, the script requires 3 parameters
' Argument list
' filename parameter 1 parameter 2
' Dream Studio www.mx111.com
' Example parameter 1 p
default (by the way, the SAFRCFileDlg. FileOpen and SAFRCFileDlg. FileSave components are also unavailable ).
In Windows 7, how does one display a dialog box for selecting files? The answer is the file selection dialog box in html:Copy codeThe Code is as follows: Function BrowseForFile ()Dim shell: Set shell = CreateObject ("WScript. Shell ")Dim fso: Set fso = CreateObject ("Scripting. FileSystemObject ")
Dim tempFolder: Set tempFolder = fso. GetSpec
How to: Manually modify the name of an HTML file and the file name of the ASP you want to generate, and then save the following code as 1.vbs, and double-click the same directory as 1.html to run it.
Copy Code code as follows:
html = "1.html"
ASP = "1.asp"
Set fso = CreateObject ("Scripting.FileSystemObject")
Set fhtml = fso. OpenTextFile (HTML, 1)
'Batch replace file names'Author: avill'Upate: 2006.2.28'
Dim newlineNewline = vbcrlfTabstop = ""
Function isfolderexists (FSO, folderpath)If folderpath = empty then exit functionIf not FSO. folderexists (folderpath) thenMsgbox "foloder not exists! Please try agian"Folderpath = inputbox ("batch replace file name" vbcrlf "Enter the path [absolute path]. If it is null, the system automatically exits ","")Ca
' registry unlock success! '
Save as a file with a. vbs extension and double-click it when you use it.
Second, close the win nt/2000 default sharing
Edit the following in Notepad:
Dim WshShell ' defines a variable
Set Wshshell=createobject ("Wscript.Shell") ' creates an object that communicates with the operating system WshShell
Dim FSO,DC
Set fso=createobject ("Scripting.FileSystemObject") ' Creates
A very practical piece of code, used to drill down to the VBS, really good slightly.
Copy Code code as follows:
On error Resume Next ' ignores all errors
Dim filename ' declares variable
Dim RE
Set Re=new REGEXP ' establish a regular expression object instance
re.pattern= "^ ([a-z]|[ A-z]) +\:\\\w+\.vbs$ "
If Re. Test (wscript.scriptfullname) =false Then
MsgBox "Please run this program in
When it comes to using the VBS download file is not think of XMLHTTP, hehe, the following is a more classic code:
Ilocal=lcase (WScript.Arguments (1))
Iremote=lcase (wscript.arguments (0))
Set xpost=createobject ("Microsoft.XMLHTTP")
Xpost.open "Get", iremote,0
Xpost.send ()
Set Sget=createobject ("ADODB. Stream ")
Sget.mode=3
Sget.type=1
Sget.open ()
Sget.write Xpost.responsebody
Sget.savetofile ilocal,2
Requirements: The original host has increased the following 3 lines
202.102.101.105 Intranet.corp202.102.101.107 Mail.intranet.corp202.102.101.108 Sip.intranet.corp
This 3-line content is not required, so run the above VBS code to delete the host file 3 lines
' This script requires the execution user to have local Administrator privileges Const ForReading = 1, ForWriting = 2, ForAppending = 8, ReadOn
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.