begin process at 2012 05 27 21:55:43
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Divers

 > KLIENT[VBS] - COMPUTER INFORMATIONS

KLIENT[VBS] - COMPUTER INFORMATIONS


 Information sur la source

Note :
8 / 10 - par 2 personnes
8,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Divers Niveau :Débutant Date de création :27/07/2002 Date de mise à jour :28/07/2002 15:14:37 Vu :3 772

Auteur : vbtom

Ecrire un message privé
Site perso
Commentaire sur cette source (3)
Ajouter un commentaire et/ou une note

 Description

Cliquez pour voir la capture en taille normale
Des infos hardware sur vot pc

Source

  • '-- DS LES ALIAS
  • Dim I
  • For i=1 to Sysinfo.DriveCount-1
  • Dim DriveLetter
  • DriveLetter=SysInfo.Drive(I)
  • if DriveLetter<>"" then
  • Dim FDriveInfo
  • FDriveInfo = "1 - " & SysInfo.Drive(I) & "[12" & sysinfo.drivetype(DriveLetter) & "1]"
  • if SysInfo.VolumeName(DriveLetter)<>"" then
  • FDriveInfo = FDriveInfo & " [12" & SysInfo.VolumeName(DriveLetter) & "1]"
  • end if
  • FDriveInfo = FDriveInfo & ": 12" & OctetsToKoMoGo(SysInfo.DiskSpaceFree(DriveLetter)) & "1 free/12" & OctetsToKoMoGo(SysInfo.DiskSpace(DriveLetter))
  • end if
  • display.echo windowhandle, FDriveInfo
  • Next
  • display.echo windowhandle,"0,0"
  • display.echo windowhandle,"1Memory: 12" & Sysinfo.MemoryAvailable & "1 Mo avaible/12" & sysinfo.MemoryTotal & "1 Mo"
  • display.echo windowhandle,"0,0"
  • '-- DANS GLOBAL --
  • Function OctetsToKoMoGo(DATA)
  • Dim Decimales
  • Decimales = 2
  • If DATA < 1024 Then ' - d'1 Ko
  • OctetsToKoMoGo = DATA & " Octets"
  • ElseIf DATA > 1024 And DATA < (1024 ^ 2) Then ' Entre 1 Ko et 1023Ko
  • OctetsToKoMoGo = (Round((DATA / 1024), Decimales)) & " Ko"
  • ElseIf DATA > (1024 ^ 2) And DATA < (1024 ^ 3) Then 'Entre 1 Mo et 1023 Mo
  • OctetsToKoMoGo = (Round((DATA / (1024 ^ 2)), Decimales)) & " Mo"
  • Else 'If DATA > (1024 ^ 3) And DATA < (1024 ^ 4) Then 'Entre 1 Go et 1023 Go
  • OctetsToKoMoGo = (Round(DATA / (1024 ^ 3), Decimales)) & " Go"
  • End If
  • End Function
'-- DS LES ALIAS
Dim I
For i=1 to Sysinfo.DriveCount-1
    Dim DriveLetter
    DriveLetter=SysInfo.Drive(I)
    if DriveLetter<>"" then
        Dim FDriveInfo
        FDriveInfo = "1 - " & SysInfo.Drive(I) & "[12" & sysinfo.drivetype(DriveLetter) & "1]"
        if SysInfo.VolumeName(DriveLetter)<>"" then
             FDriveInfo =  FDriveInfo & " [12" & SysInfo.VolumeName(DriveLetter) & "1]"
        end if
        FDriveInfo =  FDriveInfo & ": 12" & OctetsToKoMoGo(SysInfo.DiskSpaceFree(DriveLetter))  & "1 free/12" & OctetsToKoMoGo(SysInfo.DiskSpace(DriveLetter))
    end if

    display.echo windowhandle, FDriveInfo
Next


        display.echo windowhandle,"0,0"
display.echo windowhandle,"1Memory: 12" & Sysinfo.MemoryAvailable & "1 Mo avaible/12" & sysinfo.MemoryTotal & "1 Mo"
display.echo windowhandle,"0,0"




'-- DANS GLOBAL --
Function OctetsToKoMoGo(DATA)
    Dim Decimales
    Decimales = 2
    If DATA < 1024 Then ' - d'1 Ko
        OctetsToKoMoGo = DATA & " Octets"

    ElseIf DATA > 1024 And DATA < (1024 ^ 2) Then ' Entre 1 Ko et 1023Ko
        OctetsToKoMoGo = (Round((DATA / 1024), Decimales)) & " Ko"

    ElseIf DATA > (1024 ^ 2) And DATA < (1024 ^ 3) Then 'Entre 1 Mo et 1023 Mo
        OctetsToKoMoGo = (Round((DATA / (1024 ^ 2)), Decimales)) & " Mo"

    Else 'If DATA > (1024 ^ 3) And DATA < (1024 ^ 4) Then 'Entre 1 Go et 1023 Go
        OctetsToKoMoGo = (Round(DATA / (1024 ^ 3), Decimales)) & " Go"

    End If
End Function 

 Conclusion

vela c un truc de newbi ms bon je tente klient alors c le debut :D


 Sources du même auteur

Source avec une capture KLIENT[VBS] - CHANGER DE NICK SUR TOUS LES SERVEURS
LA PANOPLIE DU PARFAT KICKEUR
OPER KELKUN EN FONCTION D'UN PASS - EVITE L'UTILISATION D'UN...
DIVX

 Sources de la même categorie

Source avec Zip CRÉER DU MONDE SUR VOTRE SERVEUR IRC par Averell
AVOIR UNE LISTE D'UTILISATEUR EN COULEURS SELON LEURS SEXE P... par WorldDMT
COMMANDES FANTAISIES ( OP DEOP , VOICE DEVOICE ) ORIGINALES par Orona
Source avec Zip Source avec une capture CORRECTEUR par Orona
Source avec Zip Source avec une capture [DLL] DESSINER COMME LES PICWINS SUR UNE DIALOGBOX (BONUS: J... par uaip

Commentaires et avis

Commentaire de fabrice69 le 28/07/2002 11:08:34 administrateur CS

Pas mal mais ca ressemble beaucoup dans le principe a ce que j'ai fait.
Par contre l'idée de mettre les lecteurs CD ... est pas mauvaise.
Tu devrais rajouter le total de disque libre et complet (sur le disques fixes).

F___

Commentaire de vbtom le 28/07/2002 15:02:32

Arf désolé je savais pas que tavais deja laissé un source de ce genre :/
Par contre connais tu le fonctionnement de Sokets.NewClientSocket?? car je ne comprend pas cette fnction...

Commentaire de l_ange_noir le 17/09/2004 11:27:05

francheme, j'aime assé ta source ;) 9/10

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,359 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales