我想在此路线 C:\ xampp \ htdocs 中启动我的Cmder控制台,但我不理解“任务参数”的语法。例如:
`/icon "%CMDER_ROOT%\cmder.exe`"
任何人都可以为此翻译吗? C:\xampp\htdocs to -> /icon "%CMDER_ROOT%\cmder.exe
"
非常感谢。
答案 0 :(得分:36)
答案 1 :(得分:17)
改为将%USERPROFILE%
更改为所需的文件夹。
答案 2 :(得分:4)
修改<APP_DIR>/config/user-startup.cmd
文件,附加一行(假设目录是&#39; e:&#39;):
@cd /d "e:"
REF:
答案 3 :(得分:4)
说明:打开Cmder - &gt;设置 - &gt;任务 - &gt;选择{cmd :: Cmder}(在我的情况下)。在底部(textarea下面),您有一个名为&#34; Startup dir ...&#34;的按钮,而不是选择启动目录。关闭cmder,然后重新开始。这就是它,享受
答案 4 :(得分:2)
答案 5 :(得分:1)
答案 6 :(得分:0)
编辑文件:\ CMDER_DIRECTORY \ config \ user-profile.cmd
cd C:\xampp\htdocs
在下面的示例中,我已经更改了目录并创建了一个rotine来启动宅基地。
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: uncomment this to have the ssh agent load when cmder starts
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
:: uncomment this next two lines to use pageant as the ssh authentication agent
:: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-pageant.cmd"
:: you can add your plugins to the cmder path like so
:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"
e:
cd ../../../../../Homestead
@echo off
:Ask
echo Would you like to start the Homestead?(Y/N)
set INPUT=
set /P INPUT=Yes(y) ou No(n): %=%
If /I "%INPUT%"=="y" goto yes
If /I "%INPUT%"=="Y" goto yes
If /I "%INPUT%"=="n" goto no
cls
echo Invalid option
echo -
echo -
goto Ask
:yes
vagrant up
goto finalMessage
:no
cls
goto finalMessage
:finalMessage
echo Your console is ready Mr. Chapela.
答案 7 :(得分:0)