Forum Discussion
tim_faron
12 years agoContributor
Did you actually get this to work? I tried with Notepad and i get the following error listed below.
var Command = 'cmd /c wmic datafile where name="C:\\Windows\\System32\\Notepad.exe" get Version';
Node - WIN-73R0N5SIS5K
ERROR:
Description = Invalid query
14:08:59 Normal Error
-----------
When i paste it into the cmd window however it works, so i assume i need some more quoting possibly
var Command = 'cmd /c wmic datafile where name="C:\\Windows\\System32\\Notepad.exe" get Version';
Node - WIN-73R0N5SIS5K
ERROR:
Description = Invalid query
14:08:59 Normal Error
-----------
When i paste it into the cmd window however it works, so i assume i need some more quoting possibly