g command - A Efficient CMD Tool.

本贴最后更新于 1393 天前,其中的信息可能已经水流花落

g Command

A Efficient CMD Tool.

Part1. Supported Commands

echo    g command - A Efficient CMD Tool. 
echo    ------------------------------------------------------------------------- 
echo    cmd                remark
echo    ------------------------------------------------------------------------- 
echo    g bin              打开目录"D:\Softwares\_Bin"
echo    g wsp              打开目录"D:\Workspace"
echo    g doc              打开目录"D:\Workspace\Doc"
echo    g prg              打开目录"D:\Workspace\Program"
echo    g prj              打开目录"D:\Workspace\Project"
echo    g g                打开文件"D:\Softwares\_Bin\README.md" and "g.bat"
echo    g wlog             打开文件"D:\Workspace\Doc\Worklog\工作日志_2020.md"
echo    g md [fileName]    启动程序Typora并打开[fileName]
echo    g jp               启动程序Jupyter notebook
echo    g ps               启动程序PhotoShop
echo    g npp [fileName]   启动程序Filezilla并打开[fileName]
echo    g ftp              启动程序Filezilla
echo    g xm               启动程序XMind
echo    ------------------------------------------------------------------------- 
echo    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

@echo off
if "%1"=="bin" goto bin
if "%1"=="wsp" goto wsp
if "%1"=="doc" goto doc
if "%1"=="prg" goto prg
if "%1"=="prj" goto prj

if "%1"=="g" goto g
if "%1"=="wlog" goto wlog

if "%1"=="md" goto md
if "%1"=="jp" goto jp
if "%1"=="ps" goto ps
if "%1"=="npp" goto npp
if "%1"=="ftp" goto ftp
if "%1"=="xm" goto xm

echo    g command - A Efficient CMD Tool. 
echo    ------------------------------------------------------------------------- 
echo    cmd                remark
echo    ------------------------------------------------------------------------- 
echo    g bin              打开目录"D:\Softwares\_Bin"
echo    g wsp              打开目录"D:\Workspace"
echo    g doc              打开目录"D:\Workspace\Doc"
echo    g prg              打开目录"D:\Workspace\Program"
echo    g prj              打开目录"D:\Workspace\Project"
echo    g g                打开文件"D:\Softwares\_Bin\README.md" and "g.bat"
echo    g wlog             打开文件"D:\Workspace\Doc\Worklog\工作日志_2020.md"
echo    g md [fileName]    启动程序Typora并打开[fileName]
echo    g jp               启动程序Jupyter notebook
echo    g ps               启动程序PhotoShop
echo    g npp [fileName]   启动程序Filezilla并打开[fileName]
echo    g ftp              启动程序Filezilla
echo    g xm               启动程序XMind
echo    ------------------------------------------------------------------------- 
echo    enjoy it! ;)

goto done

:bin
explorer D:\Softwares\_Bin
goto done

:wsp
explorer D:\Workspace
goto done

:doc
explorer D:\Workspace\Doc
goto done

:prg
explorer D:\Workspace\Program
goto done

:prj
explorer D:\Workspace\Project
goto done

:g
"C:\Program Files (x86)\Notepad++\notepad++.exe" D:\Softwares\_Bin\README.md
"C:\Program Files (x86)\Notepad++\notepad++.exe" D:\Softwares\_Bin\g.bat
goto done

:wlog
start D:\Workspace\Doc\Worklog\工作日志_2020.md
goto done

:md
start D:\Softwares\Markdown\Typora\Typora.exe %2
goto done

:jp
start jupyter notebook
goto done

:ps
start D:\Softwares\Photoshop\Photoshop7.0\Photoshop.exe
goto done

:npp
"C:\Program Files (x86)\Notepad++\notepad++.exe" %2
goto done

:ftp
start D:\Softwares\FTP\FileZilla-x64\filezilla.exe
goto done

:xm
start /I XMind
goto done

:done
  • 代码
    466 引用 • 631 回帖 • 9 关注
  • 工具

    子曰:“工欲善其事,必先利其器。”

    285 引用 • 728 回帖
4 操作
andyho 在 2021-01-12 09:37:16 更新了该帖
andyho 在 2021-01-08 17:54:22 更新了该帖
andyho 在 2021-01-08 17:52:06 更新了该帖
andyho 在 2021-01-08 17:49:30 更新了该帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...