I'm new to vb and I have this issue that when I want to use .run in vb, the redirect > isn't creating a new text file.
Dim shl = CreateObject("WScript.Shell")
shl.Run("ping -n 2 -w 1000 127.0.0.1 > C:\Users\JoshuaCh\Desktop\out.txt", 0, True)
Okay nvm I solved it.. seems like I have to add something in before the ping
shl.Run("%comspec% /c ping...")