03-14-2024, 03:59 PM
(03-14-2024, 05:51 AM)SMcNeill Wrote: @TerryRitchie I think I've got it sorted out -- you're shelling out to command prompt and not terminal. Give this a run from the command line, like you did above, and see if you still get the error message:I tried the line in both command prompt (command) and terminal (cmd) and this time I did not get an error message but still no text file created.
Code: (Select All)cmd "Powershell Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'|Out-File -Encoding Ascii 'temp_fontlist.txt'"
(You can see the difference in the two methods above with command prompt. The first tosses the error like you're experiencing. The second runs with no issues. )
so the change with the code I've been sharing should be just to make certain to add that "cmd" to the front of that shell statement, as we see above.