use Digest::MD5;
use IO::File;
my $chk = Digest::MD5->new();
foreach my $file (@ARGV)
{
$chk->addfile(IO::File->new($file));
print "$file -> ",$chk->hexdigest,"\n";
}
The additional details could be found on [...]
|
||||||||
|
use Digest::MD5; my $chk = Digest::MD5->new(); foreach my $file (@ARGV) print "$file -> ",$chk->hexdigest,"\n"; The additional details could be found on [...] print -n "Enter Your password:" trap :catches interruptions. I.e. if the user presses Ctrl+C, the normal stty mode is set before stopping the program How to get the text from the clipboard set objIE = CreateObject("InternetExplorer.Application") How to put the text into clipboard textIntoClipboard = "Some text" & VbCrLf & "Some more text" The detailed explanation could be [...] It’s not possible to get the value of the loop variables in some versions of ksh. Example: #!/bin/ksh num=0 echo "Number=$num" This script will return “Number=0″ as the result on some Linux machines. Here is the workaround for the problem: You should change the redirection method for the input file. #!/bin/ksh l=0 Here is small bookmarklet, which allows to edit the web page for any site (ok, You could save the results on Your local machine only). javascript:document.body.contentEditable=’true’; document.designMode=’on’; [...] There is a special algorithm for comparision strings, which sound similar (Soundex). Here is JavaScript Soundex implementation: function soundex ( s_src ) Dim objAPP, sMsg On Error Resume Next Set objAPP = GetObject(, "PowerPoint.Application") If TypeName(objAPP) = "Empty" Then MsgBox "PowerPoint is " & sMsg, vbInformation, "PowerPoint" if sMsg = "started" then objAPP.Visible [...] Option Explicit Dim strComputer, objWMIService strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ Set colItems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem") For Each objItem in colItems Option Explicit Dim strComputer, objNetwork, objWMIService Set objNetwork = WScript.CreateObject("WScript.Network") Set objWMIService=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&strComputer&"\root\cimv2") Set colItems = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem") There is also WMI FAQ on [...] |
||||||||
|
Copyright © 2010 MemoSoup - All Rights Reserved
|
||||||||