Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 自动批量填写密码_Batch File - Fatal编程技术网

Batch file 自动批量填写密码

Batch file 自动批量填写密码,batch-file,Batch File,我想自动登录到tortoise hg,但我不知道如何实现:( 我有以下命令: @echo off hg clone https://name@bitbucket.org/myproj -r myBranch hg pull 当我执行此脚本时,它会要求我键入密码,但我希望自动填写:( 我尝试使用: hg clone https://name@bitbucket.org/myproj -r myBranch -p mypass 但它失败了:( 任何建议都将不胜感激:)我想答案就在Stackove

我想自动登录到tortoise hg,但我不知道如何实现:(

我有以下命令:

@echo off
hg clone https://name@bitbucket.org/myproj -r myBranch
hg pull
当我执行此脚本时,它会要求我键入密码,但我希望自动填写:( 我尝试使用:

hg clone https://name@bitbucket.org/myproj -r myBranch -p mypass
但它失败了:(

任何建议都将不胜感激:)

我想答案就在Stackoverflow上

试试看

lol….这就是要点:)也对你说实话,我看了这页和这篇文章,但我没有得出任何合理的结论……当你再次链接到它时,它启发了我:)谢谢