Skip to content

Commit

Permalink
改进。
Browse files Browse the repository at this point in the history
  • Loading branch information
kouzhudong committed Jan 30, 2024
1 parent 8dd8bf5 commit 1a3b947
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions NetTool/NetTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ int _cdecl main(_In_ int argc, _In_reads_(argc) CHAR * argv[])
}

if (_wcsicmp(Arglist[1], L"ping") == 0) {
ping(argc--, argv++);
ping(--argc, ++argv);
}

//else if (_wcsicmp(Arglist[1], L"pathping") == 0) {
// pathping(argc--, argv++);
//}
else if (_wcsicmp(Arglist[1], L"pathping") == 0) {
pathping(--argc, ++argv);
}

//else if (_wcsicmp(Arglist[1], L"tracert") == 0) {
// tracert(argc--, argv++);
//}
else if (_wcsicmp(Arglist[1], L"tracert") == 0) {
tracert(--argc, ++argv);
}

else {
Usage(Arglist[0]);
Expand Down
5 changes: 4 additions & 1 deletion NetTool/NetTool.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommandArguments>pathping baidu.com</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>

0 comments on commit 1a3b947

Please sign in to comment.