cmd

What does the single circumflex in the windows cmd shell mean: More?

邮差的信 提交于 2021-02-05 09:55:07
问题 This might not be really a question related to programming, but i have wondered for a long time, what the following cmd command means....: Just type a single circumflex in the cmd shell and windows will ask for more... And as long as you enter an even number of circumflexes, windows can't get enough. I have wondered since Vista... is this just some sort of "easter egg" or is there a purpose behind this? Philipp 回答1: It appears appending ^ just lets you continue to write a command in the next

cmd warning: python interpreter is in a conda environment, but the environment has not been activated

ぐ巨炮叔叔 提交于 2021-02-05 08:01:30
问题 I installed Anaconda (added to path) but when I try to run Python from the cmd, I get the following message: Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation I followed the link and tried to activate the environment, but my cmd then changes to (base) mode, which I am unfamiliar with. 回答1: Follow below steps 1)open cmd and type "conda activate

cmd warning: python interpreter is in a conda environment, but the environment has not been activated

北城以北 提交于 2021-02-05 08:01:26
问题 I installed Anaconda (added to path) but when I try to run Python from the cmd, I get the following message: Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation I followed the link and tried to activate the environment, but my cmd then changes to (base) mode, which I am unfamiliar with. 回答1: Follow below steps 1)open cmd and type "conda activate

Why are also *.tiff files output by Windows command DIR on searching for *.tif files?

こ雲淡風輕ζ 提交于 2021-02-05 07:45:47
问题 I want to use the Windows command DIR in order to find only TIF files, i.e. files with extension .tif . Therefore I use the following small batch file: for /f "delims=" %%a IN ('dir /b /a-d /s "C:\wolter\testversion-input\*.tif"') do echo %%a for /f "delims=" %%a IN ('dir /b /a-d /s "R:\wolter\testversion-input\*.tif"') do echo %%a Now I am wondering that this command also finds TIFF files, i.e. files with extension .tiff . So I made some tests and found out that the command DIR finds TIF AND

Difference between PowerShell's echo and CMD's echo

安稳与你 提交于 2021-02-05 06:45:46
问题 I get the following in PowerShell: D:\> echo "Apple Pie" | git hash-object --stdin 157cb7be4778a9cfad23b6fb514e364522167053 D:\> "Apple Pie" | git hash-object --stdin 157cb7be4778a9cfad23b6fb514e364522167053 but in CMD.exe: C:\>echo "Apple Pie" | git hash-object --stdin bb3918d5053fea31fc9a58fae1e5bdeabe3ec647 In a PluralSight video, I see a different value from what seems to be a Mac console: What is the exact value piped from echo in each case? I get a different hash if I go to one of those

Why CMD escape character does magic instead of escaping new line

ⅰ亾dé卋堺 提交于 2021-02-05 06:32:09
问题 I try to execute simple script: set list="a",^ "b",^ c echo %list% And the output is "a","b",a","b",^ Although I expected it to be "a", "b", c. It seems that the quotation marks spoil everything because if b is without them, all works fine. It is also mysterious to me why it breaks only on second new line escape. So, why the output is so strange? I tried to launch the script on Windows 7 if it matters 回答1: Interesting question! It seems that when the ^ is placed at end of line, the first

cmd.exe equivalent of /dev/stdout, to write to stdout 'as a file'

时光毁灭记忆、已成空白 提交于 2021-02-05 06:31:42
问题 I have a batch file that calls a Windows GUI application. The GUI app writes it's output (the interesting bits anyway) to it's own GUI display rather than stdout, however I would like it displayed in the cmd window where the batch file is running. Thankfully the app has an option to write the output to a file, so I need to redirect this to stdout. In *nix I would give /dev/stdout as the file to write to but what about in Windows/cmd? 回答1: It seems that Windows has no equivalent to unix /dev

cmd.exe equivalent of /dev/stdout, to write to stdout 'as a file'

半城伤御伤魂 提交于 2021-02-05 06:31:38
问题 I have a batch file that calls a Windows GUI application. The GUI app writes it's output (the interesting bits anyway) to it's own GUI display rather than stdout, however I would like it displayed in the cmd window where the batch file is running. Thankfully the app has an option to write the output to a file, so I need to redirect this to stdout. In *nix I would give /dev/stdout as the file to write to but what about in Windows/cmd? 回答1: It seems that Windows has no equivalent to unix /dev

Why CMD escape character does magic instead of escaping new line

纵饮孤独 提交于 2021-02-05 06:31:13
问题 I try to execute simple script: set list="a",^ "b",^ c echo %list% And the output is "a","b",a","b",^ Although I expected it to be "a", "b", c. It seems that the quotation marks spoil everything because if b is without them, all works fine. It is also mysterious to me why it breaks only on second new line escape. So, why the output is so strange? I tried to launch the script on Windows 7 if it matters 回答1: Interesting question! It seems that when the ^ is placed at end of line, the first

Accessing a network folder through a python program

☆樱花仙子☆ 提交于 2021-02-05 06:15:07
问题 Just a brief outline of what I'm doing: I'm trying to automate some pdf merging routine with python in a network directory, which involves copying, deleting and creating files at a specific network location. Apologies if my language is not very precise. I'm coding on windows 7, using python 3.6. The program will need to be distributed on other machines, so local and temporary fixes will probably not help. The code I wrote is fully functional and works fine with all the local folders and files