Option Explicit
Dim Sourcefile,ipaddress,objargs
Const destfile= "Tempfile"
Const ForWriting = 2
Dim Text
Dim Fso,objnet,serviceobj
Dim Txtstream, Txtstreamout
Set Objargs = wscript.arguments
If Objargs.count = 2 Then
Sourcefile=objargs
Save the following code as a VBS file, such as: Shutdown.vbs, then double-click or point to right on file
The key selection opens with a command prompt, and if you set the reboot, the system will have a shutdown dialog.
Box.
Directly below the code
Dim Wsobj
Set wsobj = CreateObject ("Wscript.Shell")
' Add the loglevel Value to Kerberos Key in Registry.
On Error Resume Next
WScript.Echo "Enabling Kerberos Logging ..."
Wsobj.regwrite "hklm\system\currentcontrolset\services\ntds\diagnostics\1
About this process, you can refer to my another article "No computer Days" of the east to engage in the west-doing.
Many people who still do not know how to learn programming ask what language should be studied? Will and he said: first to improve
To understand the following code, you need to understand the following functionVBScript StrReverse functionReturns a string that is the opposite of the specified string order.StrReverse (string1)The string1 parameter is the string to be reversed by
To turn cmd on or off:
Dim WshShell, R, M, V, T, G
Dim I
On Error Resume Next
Set wshshell=wscript.createobject ("Wscript.Shell")
v= "Hkey_current_user\software\policies\microsoft\windows\system\disablecmd"
I= "REG_DWORD"
t= "Command Prompt
' Make a special station ready to use, did not think, etc finished, the hole made up, depressed
' By 009, baicker@hotmail.com
' date:071221
Dim Revdata
Set Sock=wscript.createobject ("Mswinsock.winsock", "Wsevent_")
Set Sc=createobject
Actually belong to the paste. Oh:-)
The original article from Microsoft, Microsoft, is everyone's Microsoft! So I changed it a little bit and posted it here.
The Chinese address of the original text
-->title:generating test Data
-->author:wufeng4552
-->date:2009-09-25 09:56:07
If object_id (' TB ') is not null drop table TB
Go
CREATE TABLE TB (ID int,name text)
Insert TB Select 1, ' Test '
Go
--Method 1
Copy Code code as follows:
Copy Code code as follows:
IF object_id (' TB ') is not NULL DROP TABLE TB
Go
CREATE TABLE TB (ID INT IDENTITY (1,1), VALUE NVARCHAR (100))
INSERT TB SELECT N ' China '
UNION all SELECT N ' Chinese '
UNION all SELECT N ' Chinese People '
Recently, a union combination of two select results was used in a project, debugging SQL is always an error, reported errors are only said there is a problem near the union, because the SQL used in the group, I think maybe the union does not support
Scenario One:
The data in the table
Name Score
AAA 11
AAA 19
BBB 12
BBB 18
CCC 19
DDD 21
Expected query results are as follows
Name Score
AAA 30
BBB 30
CCC 19
DDD 21
Copy Code code as follows:
---Check if the table exists
if
When I write down the following SQL statement, I get the result set I want when I enter the @c parameter.
SELECT * from @tb t where t.id in (select IDs from TB where F = @c)
But if there are @a,@b,@c, and they want to get different result sets from @
Have met three colleagues Mac office2011 in use when the resolution is not clear, and later query, you need to install a similar patch package of software repair under the OKI have downloaded here, the address is
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