(imported topic written by NelsonEW)
Good morning everyone,
I’m using an action to run a command line that pipes to a txt file, when I use the relevance debugger to read the lines of the file I get the test, along with a %00 in between every character. How can I read the file without seeing the %00s. Here is the Code and the results:
Action
if {exists file “c:\tools\test.txt”}
delete “c:\tools\test.txt”
endif
run “c:\tools\runascurrentuser.exe” --w --q cmd.exe /c wmic logicaldisk get caption,providername,drivetype,volumename >> “c:\tools\test.txt”
What I put in the Relevance debugger:
q: lines of file “c:\tools\test.txt”
A: %ff%feC%00a%00p%00t%00i%00o%00n%00 %00 %00D%00r%00i%00v%00e%00T%00y%00p%00e%00 %00 %00P%00r%00o%00v%00i%00d%00e%00r%00N%00a%00m%00e%00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00V%00o%00l%00u%00m%00e%00N%00a%00m%00e%00 %00 %00
A: %00
A: %00C%00:%00 %00 %00 %00 %00 %00 %00 %003%00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00 %00O%00S%00D%00i%00s%00k%00 %00 %00 %00 %00 %00 %00
A: %00
Any help would be greatly appreciated. Thank you