Jump to content

Westi

Member
  • Posts

    61
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Palestine, State of

Posts posted by Westi

  1. Check for the right drive and name, Version 2 :

    Dim fso, objDrive, s, InstCD
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set fso = CreateObject("Scripting.FileSystemObject")
    For Each objDrive In fso.Drives
    If objDrive.IsReady Then
    If objDrive.DriveType = 4 And objDrive.VolumeName = "xxx-Your CD name-xxx" Then s = objDrive.DriveLetter & ":\"
    End If
    Next
    'Write it to all keys in the registry
    WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\CDROM",s ,"REG_SZ"
    WshShell.RegWrite "HKCU\Environment\CDROM", s, "REG_SZ"
    WshShell.RegWrite "HKU\.Default\Environment\CDROM", s, "REG_SZ"
    'Get the value in another script
    InstCD = WshShell.ExpandEnvironmentStrings("%CDROM%")

    Wscript.Quit

    My first version fails if a drive isn't ready :)

  2. hey does anyone know how to use two send keys in one

    what I mean :

    {SHIFT} & {TAB} at the same time ? how do we do this?

    i've failed my previous attempts!

    Sendkeys "+{TAB}"

    -SHIFT TAB

    Sendkeys "+"

    -SHIFT

    Sendkeys "^"

    -CTRL

    Sendkeys "%"

    -ALT

    Sendkeys "+(ec)"

    -SHIFT EC

    Sendkeys "+ec"

    -SHIFT E and normal c

    If you need the normal value, insert it in {}:

    "{+}" is +

    All special keys:

    {BACKSPACE} or {BS} or {BKSP}, {BREAK},{CAPSLOCK},{DELETE} or {DEL}

    {DOWN},{UP},{END},{ENTER} or ~,{ESC},{HELP},{HOME},{INSERT} or {INS}

    {LEFT},{RIGHT},{NUMLOCK},{PGDN},{PGUP},{PRTSC},{SCROLLLOCK},{TAB}

    {F1}..... {F16}

    CTRL/ALT/DEL and special window keys not implemented !

  3. is there a command that can use the cd rom name itself eg WINXP_SP1 then it would matter what drive letter it would be.

    Create a vbs file and write in:

    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set fso = CreateObject("Scripting.FileSystemObject")
    Dim s
    Call ChCD(D:\)
    Call ChCD(E:\)
    Call ChCD(F:\)
    Call ChCD(G:\)
    Call ChCD(H:\)
    Call ChCD(I:\)
    Call ChCD(J:\)
    Call ChCD(K:\)
    Call ChCD(L:\)
    ...
    WshShell.MsgBox "CDROM Letter is " & s
    ...
    Wscript.Quit
    Function ChCD(DriveN)
    Set d = fso.GetDrive(DriveN)
    If d.IsReady And d.DriveType = 4 And d.VolumeName = "WINXP_SP1 " Then s = DriveN
    End Function

    This checks for

    - drive ready?

    - drive type CDROM

    - Volume name

  4. I think we can use the command "shutdown /a" at the beginning of the batch file to get rid of the reboot caused by msblast (as soon as you are connected to the net). I just have to find out the switch to reactivate the shutdown right before the end of the batch.

    Just modify the registry:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs\FailureActions: 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 53 00 65 00 00 00 00 00 60 EA 00 00 02 00 00 00 60 EA 00 00 02 00 00 00 60 EA 00 00

    This line changes the behavior of RPCSS-service to do nothing after a crash (instead of a reboot)

  5. I have dl SUN-Java 1_4_1_05.

    The unattended installation don't run with setup.iss.

    [InstallShield Silent]
    Version=v6.00.000
    File=Response File
    [File Transfer]
    OverwrittenReadOnly=NoToAll
    [{78D082B3-ACEE-11D7-9D64-00010240CE95}-DlgOrder]
    Dlg0={78D082B3-ACEE-11D7-9D64-00010240CE95}-SdLicense-0
    Count=2
    Dlg1={78D082B3-ACEE-11D7-9D64-00010240CE95}-SetupType-0
    [{78D082B3-ACEE-11D7-9D64-00010240CE95}-SdLicense-0]
    Result=1
    [{78D082B3-ACEE-11D7-9D64-00010240CE95}-SetupType-0]
    Result=301
    [Application]
    Name=Java 2 Runtime Environment, SE v1.4.1_05
    Version=1.4.1_05
    Company=JavaSoft
    Lang=0009

    I tried setup -r and the usual method, but the installation crashes...(on 2 comp's)

    What's wrong, has anybody a working file ?

    Any suggestions ?

  6. I prefer to use HfNetCheck ~15 MB, 'cause you don't need windows-update and get detailed information of needed and installed patches with KB- and Q-numbers on all comp's in your network (if you want).

    Type hfnetchk /? to get more help (console window).

    database is dated 16/10.

    Is this newer than MS' ?

    EDIT:NO,NO use this hfnetchk for console , i don't realize the size of the link above, i'm really ... :)

  7. EDIT: Wooh, too fast4me :)

    @GreenMachine

    You can read the whole story at eweek

    AFAIC, you can use Version5.

    MS says:

    Windows 98/ME/2000/XP

    If you are using Windows 98, Windows ME, Windows 2000 or Windows XP operating systems, you need to run MSN Messenger version 5.0 or later.  To check your version of MSN Messenger click Help, and then click About in the main window.

    For now...

    But tomorrow ???

    My choice is Version6 with MessengerPlus.

×
×
  • Create New...