(imported topic written by rdamours91)
Looks like “Device is capable of bring programmed to wake the system.” has a typo in it.
// check if there exists a network card that supports wake from standby. Returns fail if one doesn’t exist
continue if {exists substrings separated by “===================” whose(it contains “Device is capable of bring programmed to wake the system.” AND it contains “{4D36E972-E325-11CE-BFC1-08002BE10318}}”) of concatenations “|” of lines of files “devices.txt”}
//checks for devices that can wake, and are of the “Network Adapter” hardware class
appendfile {concatenation of (“powercfg.exe /deviceenablewake %22” & it & “%22%0d%0a”) of preceding texts of firsts “|” of substrings after "DeviceName: " of substrings separated by “===================” whose(it contains “Device is capable of bring programmed to wake the system.” AND it contains “Device is not currently armed to wake the system.” AND it contains “{4D36E972-E325-11CE-BFC1-08002BE10318}}”) of concatenations “|” of lines of files “devices.txt”}