g command - A Efficient CMD Tool.

g Command

A Efficient CMD Tool.

Part1. Supported Commands

 1echo    g command - A Efficient CMD Tool. 
 2echo    ------------------------------------------------------------------------- 
 3echo    cmd                remark
 4echo    ------------------------------------------------------------------------- 
 5echo    g bin              打开目录"D:\Softwares\_Bin"
 6echo    g wsp              打开目录"D:\Workspace"
 7echo    g doc              打开目录"D:\Workspace\Doc"
 8echo    g prg              打开目录"D:\Workspace\Program"
 9echo    g prj              打开目录"D:\Workspace\Project"
10echo    g g                打开文件"D:\Softwares\_Bin\README.md" and "g.bat"
11echo    g wlog             打开文件"D:\Workspace\Doc\Worklog\工作日志_2020.md"
12echo    g md [fileName]    启动程序Typora并打开[fileName]
13echo    g jp               启动程序Jupyter notebook
14echo    g ps               启动程序PhotoShop
15echo    g npp [fileName]   启动程序Filezilla并打开[fileName]
16echo    g ftp              启动程序Filezilla
17echo    g xm               启动程序XMind
18echo    ------------------------------------------------------------------------- 
19echo    enjoy it! ;)

Part2. Use method

  • Download g.bat
  • Edit g.bat according to your requirement.
  • Add the parent path of g.bat to OS Path.
  • Enjoy it ; )

Part3. g.bat

 1@echo off
 2if "%1"=="bin" goto bin
 3if "%1"=="wsp" goto wsp
 4if "%1"=="doc" goto doc
 5if "%1"=="prg" goto prg
 6if "%1"=="prj" goto prj
 7
 8if "%1"=="g" goto g
 9if "%1"=="wlog" goto wlog
10
11if "%1"=="md" goto md
12if "%1"=="jp" goto jp
13if "%1"=="ps" goto ps
14if "%1"=="npp" goto npp
15if "%1"=="ftp" goto ftp
16if "%1"=="xm" goto xm
17
18echo    g command - A Efficient CMD Tool. 
19echo    ------------------------------------------------------------------------- 
20echo    cmd                remark
21echo    ------------------------------------------------------------------------- 
22echo    g bin              打开目录"D:\Softwares\_Bin"
23echo    g wsp              打开目录"D:\Workspace"
24echo    g doc              打开目录"D:\Workspace\Doc"
25echo    g prg              打开目录"D:\Workspace\Program"
26echo    g prj              打开目录"D:\Workspace\Project"
27echo    g g                打开文件"D:\Softwares\_Bin\README.md" and "g.bat"
28echo    g wlog             打开文件"D:\Workspace\Doc\Worklog\工作日志_2020.md"
29echo    g md [fileName]    启动程序Typora并打开[fileName]
30echo    g jp               启动程序Jupyter notebook
31echo    g ps               启动程序PhotoShop
32echo    g npp [fileName]   启动程序Filezilla并打开[fileName]
33echo    g ftp              启动程序Filezilla
34echo    g xm               启动程序XMind
35echo    ------------------------------------------------------------------------- 
36echo    enjoy it! ;)
37
38goto done
39
40:bin
41explorer D:\Softwares\_Bin
42goto done
43
44:wsp
45explorer D:\Workspace
46goto done
47
48:doc
49explorer D:\Workspace\Doc
50goto done
51
52:prg
53explorer D:\Workspace\Program
54goto done
55
56:prj
57explorer D:\Workspace\Project
58goto done
59
60:g
61"C:\Program Files (x86)\Notepad++\notepad++.exe" D:\Softwares\_Bin\README.md
62"C:\Program Files (x86)\Notepad++\notepad++.exe" D:\Softwares\_Bin\g.bat
63goto done
64
65:wlog
66start D:\Workspace\Doc\Worklog\工作日志_2020.md
67goto done
68
69:md
70start D:\Softwares\Markdown\Typora\Typora.exe %2
71goto done
72
73:jp
74start jupyter notebook
75goto done
76
77:ps
78start D:\Softwares\Photoshop\Photoshop7.0\Photoshop.exe
79goto done
80
81:npp
82"C:\Program Files (x86)\Notepad++\notepad++.exe" %2
83goto done
84
85:ftp
86start D:\Softwares\FTP\FileZilla-x64\filezilla.exe
87goto done
88
89:xm
90start /I XMind
91goto done
92
93:done

标题:g command - A Efficient CMD Tool.
作者:观音参禅
地址:http://andy-ho.top/articles/2021/01/08/1610098880620.html