示例#1
0
 public WindowsMapDrive(Base.CommandHub parent) : base(parent, "Windows - Map Drive", new List <string> {
     "windows.map", "win.map"
 },
                                                       "-windows.map [drive letter] [UNC path] [persistent]",
                                                       new List <string>() { @"-windows.map S \\192.168.0.244\temp p" })
 {
 }
示例#2
0
 public WindowsShellReplacement(Base.CommandHub parent) : base(parent, "Windows - Shell Replacement", new List <string> {
     "windows.shell", "win.shell"
 },
                                                               @"-win.shell <filepath>",
                                                               new List <string>() { @"-win.shell c:\shell\shell.exe" })
 {
 }
示例#3
0
 public WindowsLogin(Base.CommandHub parent) : base(parent, "Windows - Login", new List <string> {
     "windows.login", "win.login", "net.login", "n.login"
 },
                                                    "-windows.login [ip] [domain/username] [password] [p|persistent] [ping]",
                                                    new List <string>() { @"-windows.login \\192.168.0.244\temp test testpw p",
                                                                          @"-n.login 192.168.0.244 test testpw ping" })
 {
 }
示例#4
0
 public WindowsAutoLogin(Base.CommandHub parent) : base(parent, "Windows - Set AutoLogin", new List <string> {
     "windows.autologin", "win.autologin"
 },
                                                        @"-windows.autologin [domain\username] [password]",
                                                        new List <string>() { @"-windows.login ./Username Password",
                                                                              @"-windows.login mydomain\username Password" })
 {
 }
示例#5
0
 public ExcelOpenNewInstances(Base.CommandHub parent)
     : base(parent, "Excel Fix - Open New Instances",
            new List <string> {
     "excel.fix"
 },
            @"-excel.fix",
            new List <string>() { @"excel.fix" })
 {
 }
示例#6
0
 public FileOpenFolder(Base.CommandHub parent) : base(parent, "File - Open Folder",
                                                      new List <string> {
     "file.open", "f.of"
 },
                                                      "-file.open <folder path>",
                                                      new List <string> {
     @"-file.find ""C:\temp\"""
 })
 {
 }
示例#7
0
 public VboxManage(Base.CommandHub parent) : base(parent, "Vbox Manage Tool",
                                                  new List <string> {
     "vbox.manage", "vb.manage"
 },
                                                  @"-vbox.manage [arg1] [arg2] [arg3]",
                                                  new List <string> {
     "-vbox.manage modifyhd \"WinXP-disk1.vdi\" --resize 3000"
 })
 {
 }
示例#8
0
 public FileBsdHeader(Base.CommandHub commandHub) : base(commandHub, "File - BSD Stamp C# Files",
                                                         new List <string> {
     "file.bsd", "f.bsd"
 },
                                                         "-file.bsd [file_search_pattern]",
                                                         new List <string> {
     "-file.bsd *.cs"
 })
 {
 }
 public FanucFixLineNumbers(Base.CommandHub parent) : base(parent, "Fanuc Fix LineNumbers",
                                                           new List <string> {
     "fanuc.fixlines"
 },
                                                           @"-fanuc.fixlines <path>",
                                                           new List <string> {
     @"-fanuc.fixlines C:\Temp"
 })
 {
 }
示例#10
0
 public FileBackup(Base.CommandHub parent) : base(parent, "File - Backup",
                                                  new List <string> {
     "file.backup", "f.bk", "file.mirror", "f.m", "file.copy", "f.c"
 },
                                                  @"-file.backup [filepath/pattern] [destination]",
                                                  new List <string> {
     "-file.backup backup.zip \"c:\\backups\\\""
 })
 {
 }
示例#11
0
 public Delay(Base.CommandHub parent) : base(parent, "Delay",
                                             new List <string> {
     "delay", "d"
 },
                                             @"-delay <milliseconds>",
                                             new List <string> {
     "-delay 5000"
 })
 {
 }
示例#12
0
 public FileFind(Base.CommandHub parent) : base(parent, "File - Find",
                                                new List <string> {
     "file.find", "f.f"
 },
                                                "-file.find [filepattern]",
                                                new List <string> {
     "-file.find \"*.vmdk\""
 })
 {
 }
示例#13
0
 public SvnAddExternals(Base.CommandHub parent) : base(parent, "svn Get Externals",
                                                       new List <string> {
     "svn.AddExternals"
 },
                                                       @"svn.AddExternals <svn/path> <filepattern>",
                                                       new List <string> {
     @"-svn.AddExternals http://svnserver/trunk/ *.cpp"
 })
 {
 }
示例#14
0
 public AppShutdownWait(Base.CommandHub parent) : base(parent, "Application - Wait for shutdown",
                                                       new List <string> {
     "app.wait", "a.w"
 },
                                                       @"-app.wait [ProcessName]",
                                                       new List <string> {
     "-app.wait LabVIEW"
 })
 {
 }
示例#15
0
 public WindowsRestart(Base.CommandHub parent) : base(parent, "Windows - Restart",
                                                      new List <string> {
     "windows.restart", "win.restart"
 },
                                                      @"-windows.restart [ip | computername] [domain/username] [password] <timeout (ms)>",
                                                      new List <string> {
     "-windows.restart 192.168.0.244 admin-username mypassword 35000"
 })
 {
 }
示例#16
0
 public ListDotNetVersions(Base.CommandHub parent) : base(parent, ".Net - List Versions",
                                                          new List <string> {
     "dotNetVersions"
 },
                                                          @"-ip.config",
                                                          new List <string> {
     "dotNetVersions"
 })
 {
 }
示例#17
0
 public FanucFTP(Base.CommandHub parent) : base(parent, "FanucBackup",
                                                new List <string> {
     "fanuc.bk"
 },
                                                @"-fanuc.bk <ip:port> <path>",
                                                new List <string> {
     @"-fanuc.bk 192.168.0.2:21 C:\Temp"
 })
 {
 }
示例#18
0
 public LabviewVersion(Base.CommandHub parent) : base(parent, "Set LabVIEW project version number",
                                                      new List <string> {
     "lv_ver"
 },
                                                      "-lv_ver [lvproj_file] [version]",
                                                      new List <string> {
     "-lv_ver \"*.lvproj_file\" \"1.0.2.1\""
 })
 {
 }
示例#19
0
 public FileDestory(Base.CommandHub parent) : base(parent, "File - Destroy",
                                                   new List <string> {
     "file.destroy", "f.d"
 },
                                                   "-f.d [filepattern]",
                                                   new List <string> {
     "-f.d \"*.vmdk\""
 })
 {
 }
示例#20
0
 public NetListAdapters(Base.CommandHub parent) : base(parent, "Network - List Adapters",
                                                       new List <string> {
     "ip.config"
 },
                                                       @"-ip.config",
                                                       new List <string> {
     "-ip.config"
 })
 {
 }
示例#21
0
 public CodeClean(Base.CommandHub parent) : base(parent, "Code - Clean",
                                                 new List <string> {
     "code.clean", "c.clean", "c.c"
 },
                                                 @"-code.code path",
                                                 new List <string> {
     @"-code.clean *c:\code\"
 })
 {
 }
示例#22
0
 public FileLock(Base.CommandHub parent) : base(parent, "File - Lock",
                                                new List <string> {
     "file.lock", "f.lock"
 },
                                                "-file.find [filepattern] <timeout>",
                                                new List <string> {
     "-file.find \"*.exe\" 10000"
 })
 {
 }
示例#23
0
 public FileRemoveDirectory(Base.CommandHub parent) : base(parent, "File - Remove Directory",
                                                           new List <string> {
     "file.removedirectory", "f.rd", "d.d"
 },
                                                           "-f.d [filepattern]",
                                                           new List <string> {
     "-f.rd \"C:\\Temp\""
 })
 {
 }
示例#24
0
 public CodeClean(Base.CommandHub parent) : base(parent, "Code - Clean",
                                                 new List <string> {
     "code.clean", "c.clean", "c.c"
 },
                                                 @"-code.reindent [filepath/pattern]",
                                                 new List <string> {
     "-code.clean *.vb"
 })
 {
 }
示例#25
0
 public BuildSLN(Base.CommandHub parent) : base(parent, "Build - .NET soultion",
                                                new List <string> {
     "build.net", "b.net"
 },
                                                "-b.net [.net version] [solution_path] [msbuild arguments]",
                                                new List <string> {
     "-b.net 3.5 sar.sln /p:Configuration=Release /p:Platform=\"x86\""
 })
 {
 }
示例#26
0
 public CodeReIndent(Base.CommandHub parent) : base(parent, "Code - ReIndent",
                                                    new List <string> {
     "code.reindent", "c.reindent", "c.r"
 },
                                                    @"-code.reindent [filepath/pattern]",
                                                    new List <string> {
     "-code.reindent *.vb"
 })
 {
 }
示例#27
0
文件: Kill.cs 项目: hchiam/sar-tool
 public Kill(Base.CommandHub parent) : base(parent, "Kill Process",
                                            new List <string> {
     "kill", "k"
 },
                                            @"-kill [ProcessName]",
                                            new List <string> {
     "-kill LabVIEW"
 })
 {
 }
示例#28
0
 public FileTimestamp(Base.CommandHub parent) : base(parent, "File - Timestamp Name",
                                                     new List <string> {
     "file.timestamp", "f.t", "timestamp", "t"
 },
                                                     @"-timestamp <FilePath> [date/time format]",
                                                     new List <string> {
     "-timestamp backup.zip \"yyyy.MM.dd-HH.mm\""
 })
 {
 }
示例#29
0
文件: rdp.cs 项目: hchiam/sar-tool
 public rdp(Base.CommandHub parent) : base(parent, "RDP - Launch Session",
                                           new List <string> {
     "rdp"
 },
                                           @"-rdp host username password",
                                           new List <string> {
     "-rdp 192.168.0.101 admin password"
 })
 {
 }
示例#30
0
 public BuildNSIS(Base.CommandHub parent) : base(parent, "Build - NSIS installer",
                                                 new List <string> {
     "build.nsis", "b.nsis"
 },
                                                 "-b.nsis [nsis_filepath]",
                                                 new List <string> {
     @"-b.nsis src\Installer\chesscup.nsi"
 })
 {
 }