草庐IT

DeleteOnReboot

全部标签

c# - 将参数传递给代码 C# 中的变量

我正在尝试使用这个程序,但我希望能够在以下位置传递参数:DeleteOnReboot(@"C:\test.txt");“C:\Text”是所以我可以调用consoleapp.exe/C:\test2.exe所以我会在代码中有一个变量,例如DeleteOnReboot(@"%VARIABLE%");完整代码:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Runtime.InteropServices;namespaceConsoleApplication1