C
C#16mo ago
D4V1D

❔ Im a begginer

the script just copies the text from running a command in cmd why does it work if i use systeminfo or ping but gives the error when i try to ping an ip
7 Replies
TheRanger
TheRanger16mo ago
well, ping 1.1.1.1 isnt a file 😄
D4V1D
D4V1D16mo ago
and ping is?
TheRanger
TheRanger16mo ago
Ping Class (System.Net.NetworkInformation)
Allows an application to determine whether a remote computer is accessible over the network.
D4V1D
D4V1D16mo ago
ill try but im really a begginer thx for the help tho
TheRanger
TheRanger16mo ago
if you really want to ping from the cmd u can just do
test.StartInfo.FileName = "cmd.exe";
test.StartInfo.Arguments = "/c ping 1.1.1.1";
test.StartInfo.FileName = "cmd.exe";
test.StartInfo.Arguments = "/c ping 1.1.1.1";
D4V1D
D4V1D16mo ago
works perfectly thx
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.