Jump to content
AIDA64 Discussion Forum
Novius

Generating reports from script

Recommended Posts

Hello, 

I'm trying to make a batch file that will run AIDA64 (Buisness) and use the custom template ive created. 
I furthermore want the report to be placed in a folder thats name after the Serial Number on the motherboard. (The file must also be named after the Serial Number.) 

Sofar ive come up with:

for /F "skip=2 tokens=2 delims=," %%A in ('wmic bios get serialnumber /FORMAT:csv') do (set "serial=%%A")

echo %serial%

Start D:\AIDA64\Aida64.exe /CUSTOM C:\Users\Jeppe Helbo\Desktop\AIDA64project\fulrep.rpf /LANGEN /R C:\Users\Jeppe Helbo\Desktop\AIDA64project\Testmaskiner\%serial% /XML

PAUSE 

But im not too great at creating batch files, so the above just runs the entire aida full report, and dont output it anywhere. 

Does anyone have some insight on what im doing wrong.

Share this post


Link to post
Share on other sites

If you have a space character or any other special character in your folder name or file name, you need to put it between quotation marks (" characters).  For example:

Start D:\AIDA64\Aida64.exe /CUSTOM "C:\Users\Jeppe Helbo\Desktop\AIDA64project\fulrep.rpf" /LANGEN /R "C:\Users\Jeppe Helbo\Desktop\AIDA64project\Testmaskiner\%serial%" /XML

Also, in case your Windows user is Jeppe Helbo, I'd also improve on your command-line by replacing the fully qualified personal folder name by its Environment variable, which should result in the same output, but would work independent from the name of the current Windows user.  For example:

Start D:\AIDA64\Aida64.exe /CUSTOM "%USERPROFILE%\Desktop\AIDA64project\fulrep.rpf" /LANGEN /R "%USERPROFILE%\Desktop\AIDA64project\Testmaskiner\%serial%" /XML

Check if it works better that way ;)

Also, be aware of using a string from DMI, such as motherboard serial number.  It may contain such characters that cannot be included in a filename.  In such cases AIDA64 will not be able to save the file.

Share this post


Link to post
Share on other sites

Yup that works perfectly!

So i need to add another layer to where the file is stored. 

All the machines im running this on, already have a folder created with their serial number. 

So how do i make the script post the file that i create (Still named as serial when its saved), into the folder thats named serial. 

 

Share this post


Link to post
Share on other sites
43 minutes ago, Novius said:

Yup that works perfectly!

So i need to add another layer to where the file is stored. 

All the machines im running this on, already have a folder created with their serial number. 

So how do i make the script post the file that i create (Still named as serial when its saved), into the folder thats named serial. 

 

If you set the Environment variable serial to the right value, you can use it in your command-line as you've proposed (%serial%).

Share this post


Link to post
Share on other sites
6 minutes ago, Novius said:

So when i run the script from my server, it says: Invalid switch - "/Custom"

Who says that? AIDA64? 

Share this post


Link to post
Share on other sites

My batch file. 

This is printed from CMD when the script runs. 

"\\Directory\Directory\Directory\Directory\AIDA64-JH\AIDA64\Aida64.exe" /CUSTOM \\nas\test\Script\Development\AIDA64-JH\fulrep.rpf /LANGEN /R "\\Directory\Directory\Directory\R90KLBTM\R90KLBTM /XML
Invalid switch - "/CUSTOM".

 

Share this post


Link to post
Share on other sites

To me it seems there's a missing quotation mark (" character) there, before /XML.  A fixed command-line would look like this:

"\\Directory\Directory\Directory\Directory\AIDA64-JH\AIDA64\Aida64.exe" /CUSTOM \\nas\test\Script\Development\AIDA64-JH\fulrep.rpf /LANGEN /R "\\Directory\Directory\Directory\R90KLBTM\R90KLBTM" /XML

Share this post


Link to post
Share on other sites
Start "\\nas\test\Script\Development\AIDA64-JH\AIDA64\Aida64.exe" /CUSTOM \\nas\test\Script\Development\AIDA64-JH\fulrep.rpf /LANGEN /R "\\Directory\specs\Logs_PCd_Burn\%serial%\%serial%" /XML

I tried that, it still gives me the same error. 

Share this post


Link to post
Share on other sites
15 minutes ago, Novius said:

Start "\\nas\test\Script\Development\AIDA64-JH\AIDA64\Aida64.exe" /CUSTOM \\nas\test\Script\Development\AIDA64-JH\fulrep.rpf /LANGEN /R "\\Directory\specs\Logs_PCd_Burn\%serial%\%serial%" /XML

I tried that, it still gives me the same error. 

I guess START.EXE interprets the line incorrectly, so you may need to get rid of the quotation mark characters inside the AIDA64 command-line, and close the whole thing into a single pair of quotation marks, like this:

Start "\\nas\test\Script\Development\AIDA64-JH\AIDA64\Aida64.exe /CUSTOM \\nas\test\Script\Development\AIDA64-JH\fulrep.rpf /LANGEN /R \\Directory\specs\Logs_PCd_Burn\%serial%\%serial% /XML"

Of course if you do this, make sure to not have any space characters anywhere in the AIDA64 command-line.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By mito
      ipad pro II
      ios 11.2.1
      aida64 latest
       
      send report -> share -> email
       
      <html><head></head><body><table width="100%"><tbody><tr><td colspan="2"><b>Basic Properties</b></td></tr><tr><td>Device</td><td>iPad Pro 2</td></tr><tr><td>Dock Connector</td><td>Lightning</td></tr><tr><td>SIM Card Type</td><td>Not Available</td></tr><tr><td>Device String</td><td>iPad7,1</td></tr><tr><td>Device Id</td><td>J120AP</td></tr><tr><td>Released</td><td>Jun 12, 2017</td></tr><tr><td colspan="2"><b>Capabilities</b></td></tr><tr><td>Cellular</td><td>No</td></tr><tr><td>GPS</td><td>No</td></tr><tr><td>NFC</td><td>No</td></tr><tr><td>Force Touch</td><td>No</td></tr><tr><td colspan="2"><b>Bluetooth</b></td></tr><tr><td>Version</td><td>4.2</td></tr><tr><td>Controller</td><td>Murata/Apple 339S00249</td></tr><tr><td>Bluetooth Smart (LE)</td><td>Yes</td></tr><tr><td colspan="2"><b>Physical Properties</b></td></tr><tr><td>Width</td><td>220.6 mm</td></tr><tr><td>Height</td><td>305.7 mm</td></tr><tr><td>Depth</td><td>6.9 mm</td></tr><tr><td>Weight</td><td>713 g</td></tr><tr><td colspan="2"><b>CPU Properties</b></td></tr><tr><td>CPU</td><td>Apple A10X</td></tr><tr><td>Speed</td><td>2380 MHz</td></tr><tr><td>Manufacturer</td><td>TSMC</td></tr><tr><td>Instruction Set</td><td>64-bit ARMv8-A</td></tr><tr><td>Microarchitecture</td><td>Fusion</td></tr><tr><td>Technology</td><td>16 nm</td></tr><tr><td>Core Count</td><td>3</td></tr><tr><td>Active Core Count</td><td>3</td></tr><tr><td colspan="2"><b>GPU Properties</b></td></tr><tr><td>GPU Type</td><td>PowerVR Series7</td></tr><tr><td>GPU Cores</td><td>12</td></tr><tr><td colspan="2"><b>Co-processor Properties</b></td></tr><tr><td>Co-processor</td><td>Apple M10</td></tr><tr><td colspan="2"><b>Storage Information</b></td></tr><tr><td>Device Model</td><td>64 GB</td></tr><tr><td>Total Storage</td><td>59.60 GB</td></tr><tr><td>Available Storage</td><td>2.11 GB</td></tr><tr><td colspan="2"><b>RAM Information</b></td></tr><tr><td>Total RAM</td><td>3974 MB</td></tr><tr><td>Available RAM</td><td>170 MB</td></tr><tr><td colspan="2"><b>Screen Size</b></td></tr><tr><td>Screen Size</td><td>12.9"</td></tr><tr><td>Aspect Ratio</td><td>4:3</td></tr><tr><td>Pixel Density</td><td>264 PPI</td></tr><tr><td colspan="2"><b>Screen Parameters</b></td></tr><tr><td>Vertical Resolution</td><td>2732 Pixels</td></tr><tr><td>Horizontal Resolution</td><td>2048 Pixels</td></tr><tr><td>Contrast</td><td>800:1</td></tr><tr><td>Brightness</td><td>500 cd/m²</td></tr><tr><td>Technology</td><td>IPS</td></tr><tr><td>Refresh Rate</td><td>120Hz</td></tr><tr><td>Color Gamut</td><td>DCI-P3, True Tone</td></tr><tr><td colspan="2"><b>Back Camera</b></td></tr><tr><td>Resolution</td><td>12 MegaPixels</td></tr><tr><td>Aperture</td><td>1.8</td></tr><tr><td>Max Video Resolution</td><td>4k @ 30fps</td></tr><tr><td>Max Video Speed</td><td>240fps @ 720p</td></tr><tr><td>Optical Stabilization</td><td>Yes</td></tr><tr><td>Max Photo Resolution</td><td>4032 x 3024</td></tr><tr><td>Shortest Exposure Value</td><td>1/500000 sec</td></tr><tr><td>Longest Exposure Value</td><td>1/3 sec</td></tr><tr><td colspan="2"><b>Front Camera</b></td></tr><tr><td>Resolution</td><td>7 MegaPixels</td></tr><tr><td>Aperture</td><td>2.2</td></tr><tr><td>Max Video Resolution</td><td>1080p @ 30fps</td></tr><tr><td>Max Video Speed</td><td>30fps @ 1080p</td></tr><tr><td>Optical Stabilization</td><td>No</td></tr><tr><td>Max Photo Resolution</td><td>3840 x 2160</td></tr><tr><td>Shortest Exposure Value</td><td>1/76923 sec</td></tr><tr><td>Longest Exposure Value</td><td>1/2 sec</td></tr><tr><td colspan="2"><b>Assigned IP Addresses</b></td></tr><tr><td>Wi-Fi (IPv4)</td><td>192.168.137.8</td></tr><tr><td>Wi-Fi (IPv6)</td><td>fe80::1857:918:ca5d:ed49</td></tr><tr><td>Cellular (IPv4)</td><td>Not Available</td></tr><tr><td>Cellular (IPv6)</td><td>Not Available</td></tr><tr><td colspan="2"><b>Wi-Fi Details</b></td></tr><tr><td>SSID</td><td>wrrk900</td></tr><tr><td>BSSID</td><td>0:26:c6:36:b7:7f</td></tr><tr><td>Capabilities</td><td>802.11 a/b/g/n/ac</td></tr><tr><td>Controller</td><td>Murata/Apple 339S00249</td></tr><tr><td colspan="2"><b>Battery</b></td></tr><tr><td>Status</td><td>Discharging</td></tr><tr><td>Level</td><td>91 %</td></tr><tr><td>Voltage</td><td>3.8 V</td></tr><tr><td>Capacity</td><td>10875 mAh</td></tr><tr><td>Type</td><td>Li-Ion Polymer</td></tr><tr><td colspan="2"><b>Battery Details</b></td></tr><tr><td>Charge</td><td><a dir="ltr" href="tel:9373%20/%2010300" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="11">9373 / 10300</a> mAh (91 %)</td></tr><tr><td>Wear Level</td><td>5.29 %</td></tr><tr><td>Voltage</td><td>4.081 V</td></tr><tr><td colspan="2"><b>Adapter Details</b></td></tr><tr><td colspan="2"><b>Installed OS</b></td></tr><tr><td>Operating System</td><td>iOS</td></tr><tr><td>Version</td><td>11.2.1</td></tr><tr><td>Build Number</td><td>15C153</td></tr><tr><td>Multitasking</td><td>Yes</td></tr><tr><td colspan="2"><b>Current Session</b></td></tr><tr><td>Active Time</td><td>0d 15h 49m</td></tr><tr><td>Uptime</td><td>0d 8h 19m</td></tr><tr><td colspan="2"><b>OS Compatibility</b></td></tr><tr><td>Initial OS Version</td><td>iOS 10.3.2</td></tr><tr><td>Max Supported OS Version</td><td>iOS 11+</td></tr></tbody></table><p>AIDA64 for iOS Version 1.17 (357)</p><p style="font-size: 70%;">Copyright (c) <a dir="ltr" href="tel:2015-2017" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="12">2015-2017</a> FinalWire. All rights reserved.</p></body></html>
       
       

    • By soba4ka88
      HI there,
      Is there is any way to send reports from Android AIDA64 to log files on Android mass storage, or strictly to Windows PC (for example through adb)?
      I need to create a database from 500 devices and I can't spend time on installing AIDA on every device, configuring email and sending these reports through email.
      Thank you,
      Aleks
    • By Tomtt
      Can a system be analyzed from a bootable usb drive?
       
    • By broken pixel
      Since updating to a x99 mobo & DDR4 AIDA64 no longer reports voltage from my DIMM slots or does it give me the option to add via the OSD items menu.
       
      AIDA64 does report the temperatures on all four DIMM slots.
       
      Specs:
      Asrock Extreme 11, 5930k @ 4.7GHz 1.
      32GB of Dominator Platinum DDR4 @ 2666MHz 1.20v.
       
      AIDA64 v5.70.3811 Beta
       
       
    • By Tomorrow
      This is what im trying to use:
      aida64 /R C:\Report.html /HTML /SHOWPCANCEL But its not working. I can see the report generation and i can cancel it but the file is never written to specified location.
      Is my commandline incorrect?
       
      Im trying to execute the command via batch file.
       
      AIDA64 Business 3.00.2500 Portable
      Windows 7 x64 SP1 (fully updated + admin rights and command box is run as administrator).
×