Code: Select all
wmic process call create 'cmd /c "echo hello wold >c:\test.txt" ' &timeout 1& type c:\test.txt
Code: Select all
wmic process call create 'cmd /c "echo start ""''!@#$%¨^&*()-_=+`´[{}]^^~^<^>.;:?/^|\ end >c:\test.txt" ' &timeout 1& type c:\test.txt
start ""''!@#$%¨&*()-_=+`´[{}]^~<>.;:?/|\ end
Ok, a lot of problematic characters. Quote and double quote can only print two not one. But if i try ANY command with a comma:
Code: Select all
wmic process call create 'cmd /c "echo Please accept the comma, ARRRHHHH >c:\test.txt" ' &timeout 1& type c:\test.txt
Ps:I don't want just print it, this is an example.