In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "what are the new features of WSH 5.6". In daily operation, I believe many people have doubts about the new functions of WSH 5.6. the editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of" what new features are there in WSH 5.6"! Next, please follow the editor to study!
Improved parameter handling-it is easier to process and record command line arguments. Simplifies the process of integrating scripts with other command-line scripts, making it easier to create scripts that provide help to users. Refer to the following table for information about WSH language features to familiarize yourself with this new feature.
For information, see grouping script switches together. Element defines the naming switch of the script. Element defines the unnamed switch of the script. Element makes the script self-illustrative. element
element
The environment (IOW, WSH) that shares the current process with the derived process. The Exec method accesses the standard stream programmatically. Exec method
WshScriptExec object
Access environment variables programmatically. Environment attribute
WshEnvironment object
ExpandEnvironmentStrings method
Remove method
Determines whether the derived script process is currently running. The Status property (WshScriptExec) accesses the StdIn input stream of the derived script procedure. The StdIn property (WshScriptExec) accesses the StdOut output stream of the derived script procedure. The StdOut property (WshScriptExec) accesses the StdErr output stream of the derived script procedure. The StdErr property (WshScriptExec) terminates the derived script process. The Terminate method (WshScriptExec) accesses named command-line script parameters. The WshNamed object determines whether a particular key value exists in the WshNamed object. The Exists method determines the number of switches in a WshNamed or WshUnnamed object. Count method
Scripts can be run remotely-scripts can be downloaded to several remote computer systems and run at the same time. When you run a remote script, you can view its progress. After the script is run, you can ensure that it runs correctly or you can determine the reason for the premature termination. There is a new sending object, the Controller object, used to create a remote WSH object. In addition, there is a new object that represents the instance of the script running, the Remote WSH object.
For more information, see creating a remote scripting object-remote WSH Interface. The WshController object creates a remote scripting object-using the remote WSH interface. The CreateScript method creates a remote script object-gets the handle. The WshRemote object starts the remote script process. The Execute method determines whether the remote script is currently running. The Status property (WshRemote) determines why the remote script terminates. The Description attribute (WshRemoteError) identifies the statement in the remote script that causes the script to terminate. Line property (WshRemoteError) access error message after the remote script terminates. The WshRemoteError object identifies the wrong character in the line of code. The Character attribute identifies the error number that represents a script error. The Number attribute identifies the source of the script error. The Source attribute identifies the line of source code that caused the error. The SourceText property handles remote object events. Start event
End event
Error event
When you start new processes, you can think of them as objects-- determine the state of the derived processes and access their standard Iripple O streams.
For information, see deriving a process. The Exec method accesses the object that represents the running process. State information for the WshScriptExec object access process. The Status attribute (WshScriptExec) accesses the standard Imax O stream. StdOut attribute (WshScriptExec) StdIn attribute (WshScriptExec) StdErr attribute (WshScriptExec)
You can access the current working directory-you can determine / modify the current working directory of the active process.
For more information, see accessing the active Directory. CurrentDirectory attribute
Security issues specific to scripts have been explained-a new security model makes it safer to distribute and run scripts.
For more information, see script signing and Verification. This is the end of the security and Windows script hosting, and the study of "what's new in WSH 5.6" is over. I hope you can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.