Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Posts
    11

    System Information

    I know that
    Code:
    result = System.IsSystemRestoreAvailable();
    result = System.GetDate(DATE_FMT_US);
    result = System.GetDefaultLangID();
    result = System.GetDisplayInfo();
    result = System.GetLANInfo();
    result = System.GetMemoryInfo();
    result = System.GetOSName();
    result = System.GetOSProductInfo();
    result = System.GetOSVersionInfo();
    result = System.GetTime(TIME_FMT_MIL);
    result = System.GetUserInfo();
    result = System.Is64BitOS();
    result = System.IsSystemRestoreAvailable();
    result = Drive.Enumerate();
    result = Drive.GetFreeSpace("ALL Existing Drives");
    result = Drive.GetInformation("ALL Existing Drives");
    result = Drive.GetSize(_SourceDrive);
    result = Drive.GetType(_SourceDrive);
    result = Drive.GetUsedSpace(_SourceDrive);
    is available (and more) it's just i dont know how to append these in a text file;
    I want all the information I can get from the users PC into a text file


    Jake

  2. #2
    Join Date
    Jan 2011
    Posts
    11
    result1 = Drive.Enumerate();
    result2 = Drive.GetInformation("A","B","C","D","E","F","G"," H","I","J","K","L","M","N","O","P","Q","R","S","T" ,"U","V","X","Y","Z");
    result3 = Drive.GetSize("A","B","C","D","E","F","G","H","I", "J","K","L","M","N","O","P","Q","R","S","T","U","V ","X","Y","Z");
    result4 = Drive.GetUsedSpace("A","B","C","D","E","F","G","H" ,"I","J","K","L","M","N","O","P","Q","R","S","T"," U","V","X","Y","Z");


    TextFile.WriteFromString("C:\MyFile.txt", result1, result2, result3, result4, result5, result6, result7, true);


    I believe is correct right?

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    Wrong!

    I would suggest you start by reading the scripting guide and the documentation for each function, take one step at a time, your trying to conquer to much while understanding to little

    Also, why do you want to obtain so much information about the users system, when i see questions like this, alarm bells start ringing!

  4. #4
    Join Date
    Jan 2011
    Posts
    11
    I have read the documentation; and i still dont' understand.

    Reason i want all this information is for diagnosing and troubleshooting

    Jake

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    if you cant understand a few simple functions how are you going to diagnose any problems from the returned data ?

    But, anyway.....

    I'll show you the first step, you'll have to figure the rest out for yourself

    Code:
    tDrives = Drive.Enumerate();
    if tDrives then
    	for nIndex, sDrive in pairs(tDrives) do
    		
    		tDriveInfo = Drive.GetInformation(sDrive);
    		if tDriveInfo then
    		
    			sOutPut="Label="..tDriveInfo.Label.."\r\n"
    			sOutPut=sOutPut.."FileSystem="..tDriveInfo.FileSystem.."\r\n"
    			sOutPut=sOutPut.."SerialNumber="..tDriveInfo.SerialNumber.."\r\n"
    			sOutPut=sOutPut.."DisplayName="..tDriveInfo.DisplayName.."\r\n"
    			
    			Dialog.Message("Drive Info", "Drive ("..sDrive..")\r\n"..sOutPut)
    		
    		end
    	end
    end

  6. #6
    Join Date
    Jan 2011
    Posts
    11
    Thank You Mr. Miyagi at C

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts