помогите мне написать *.bat или *.reg файл

Discussion in 'С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby' started by xanter, 30 Jul 2010.

  1. xanter

    xanter New Member

    Joined:
    22 Dec 2009
    Messages:
    27
    Likes Received:
    0
    Reputations:
    0
    Del...
     
    #1 xanter, 30 Jul 2010
    Last edited: 5 Dec 2010
  2. D1mOn

    D1mOn Elder - Старейшина

    Joined:
    2 Oct 2005
    Messages:
    380
    Likes Received:
    144
    Reputations:
    29
    Мб тебе ещё .jpg файл с таким функционалом?))
     
  3. xanter

    xanter New Member

    Joined:
    22 Dec 2009
    Messages:
    27
    Likes Received:
    0
    Reputations:
    0
    если бы нужно было .jpg то написал в заголовке темы
     
  4. alexey-m

    alexey-m Elder - Старейшина

    Joined:
    15 Jul 2009
    Messages:
    518
    Likes Received:
    100
    Reputations:
    37
    Ну в общем как то так)

    Code:
    
    Dim WSHShell, a
    
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    
    a = array("INTEL Celeron D 335","INTEL Celeron D 326", "INTEL Celeron D 331", "INTEL Celeron D 336", "INTEL Celeron D 347", "INTEL Celeron D 351", "INTEL Core 2 Duo E4300", "INTEL Core 2 Duo E4400", "INTEL Core 2 Duo E6300", "INTEL Core 2 Duo E6320", "INTEL Core 2 Duo E6400")
    
    Randomize
    WSHShell.RegWrite "HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString", a(Int(Round(UBound(a) * Rnd,0)))
    
    
    сохрани этот код под именем ***.vbs и добавь в автозагрузку
     
    #4 alexey-m, 30 Jul 2010
    Last edited: 31 Jul 2010
    1 person likes this.
  5. xanter

    xanter New Member

    Joined:
    22 Dec 2009
    Messages:
    27
    Likes Received:
    0
    Reputations:
    0
    alexey-m, как раз то что нужно ... спасибо огромное ....
     
  6. Voland-791

    Voland-791 Member

    Joined:
    1 May 2009
    Messages:
    163
    Likes Received:
    13
    Reputations:
    5
    был же гдето готовый!!
     
Loading...
Similar Threads - помогите написать файл
  1. Peja
    Replies:
    0
    Views:
    2,609