Show system IP configuration
DigitalMicrograph Script
Short script showing how command prompt output can be created and read into a DigitalMicrograph script using the command line 'ipconfig.exe' as an example.
Preview
// Call Command Prompt command "ipconfig" to read system configuration. // Pipeline the output to a text file. String filePath = "C:\\TempIPConfigInfo.txt" String cmd = "ipconfig >> " + filePath // Using cmd.exe /c will prevent the command prompt window from showing String callString = "cmd.exe /c" + cmd LaunchExternalProcess( callString ) //Now open the file in DM DocumentWindow info = NewScriptWindowFromFile( filePath )