command-prompt

Using multiple colors in matrix batch file

隐身守侯 提交于 2020-01-06 19:41:44
问题 I've been messing around with batch files a bit, and have this code running. I did not write it, I found it, and it just runs random blue numbers in command prompt until you exit. My question is this, I want to make one where every character is a random color. so essentially, it'll look like a rainbow vomited skittles on my screen. But i digress. That is my challenge, and so far i have failed at solving it. Any ideas would be great! @echo off color 01 cls :a set /a a=%random% if %a% geq 16384

Why don't Windows Shell (cmd.exe) builtin commands read from stdin?

允我心安 提交于 2020-01-06 16:18:10
问题 Why don't Windows Shell (cmd.exe) built-in commands read from stdin? (or so it seems) Example: echo bar | set /p foo= 回答1: SET /P does read the input from the pipe, but it doesn't do any good because both sides of the pipe are executed within new cmd.exe processes. So the newly defined variable is lost once the pipe sub-processes terminate. For more information, see the selected answer to the Stack Overflow question - Why does delayed expansion fail when inside a piped block of code? 来源:

Colored Python Prompt in Windows?

☆樱花仙子☆ 提交于 2020-01-06 08:37:28
问题 Here's my script that currently sets up my prompts for all of my computers (whether they're Windows, Red Hat, or OS X): import sys import datetime import platform if platform.system() is 'Windows': tealUText = "" tealText = "" greenText = "" defaultText = "" else: tealUText = "\001\033[4;36m\002" tealText = "\001\033[0;36m\002" greenText = "\001\033[0;32m\002" defaultText = "\001\033[0;0m\002" class ClockPS1(object): def __repr__(self): now = datetime.datetime.now() clock = str(now.strftime("

Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=<arch>. Stop

好久不见. 提交于 2020-01-06 06:04:50
问题 I'm trying to build libwebp.dll for webp, using these instructions (I downloaded this source code) However, I'm getting the error: Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=. Stop.` on command nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output in the Developer Command Prompt for Visual Studio 2017 (Community Edition). I don't see file cl.exe anywhere in C:\Program Files (x86)

Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=<arch>. Stop

≯℡__Kan透↙ 提交于 2020-01-06 06:04:07
问题 I'm trying to build libwebp.dll for webp, using these instructions (I downloaded this source code) However, I'm getting the error: Makefile.vc(18) : fatal error U1050: Unable to auto-detect toolchain architecture! If cl.exe is in your PATH rerun nmake with ARCH=. Stop.` on command nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output in the Developer Command Prompt for Visual Studio 2017 (Community Edition). I don't see file cl.exe anywhere in C:\Program Files (x86)

Can't activate Python venv in Windows 10

吃可爱长大的小学妹 提交于 2020-01-05 23:01:40
问题 I created a virtual environment with python -m venv myenv from the command prompt, but I don't know how to activate it. I tried executing activate.bat from the command prompt but it does not activate. In other words, I don't see the current path changed to (myenv) C:\Pathname... to indicate that myenv has been activated. When I execute activate.bat the venv is not activated. 回答1: This thread it old but I had the same problem today and found a working answer for it. I've been using python 3.6

Can't activate Python venv in Windows 10

好久不见. 提交于 2020-01-05 22:55:31
问题 I created a virtual environment with python -m venv myenv from the command prompt, but I don't know how to activate it. I tried executing activate.bat from the command prompt but it does not activate. In other words, I don't see the current path changed to (myenv) C:\Pathname... to indicate that myenv has been activated. When I execute activate.bat the venv is not activated. 回答1: This thread it old but I had the same problem today and found a working answer for it. I've been using python 3.6

how to use lessmsi to install TypeScript for VS 2010

Deadly 提交于 2020-01-05 18:05:40
问题 I am trying to use lessmsi to Uncompress/Extract an msi file to a temporary location , which is number (4) on the list of things to do while installing TypeScript with VS 2010 I tried performing an extraction as admin via the following command prompt in the directory where the msi file exists, using: C:\Users\John\Downloads>lessmsi x TypeScriptSetup.0.9.1.exe C:\Users\John\Downloads\newWork but it is telling me: 'lessmsi' is not recognized as an internal or external command operable program

Signing CAB file with signtool not working any more (The signer's certificate is not valid for signing)

冷暖自知 提交于 2020-01-05 08:08:46
问题 Few month ago a was able to successfully sign CAB file with test certificate I have created on my server. Here are the steps I have taken: makecert.exe -sv "Demo.pvk" -n "CN=Demo Company,E=demo@gmail.com" "Demo.cer" cert2spc.exe "Demo.cer" "Demo.spc" pvk2pfx.exe -pvk "Demo.pvk" -pi "pvk_password" -spc "Demo.spc" -pfx "Demo.pfx" -po "pfx_password" signtool.exe sign /f "Demo.pfx" /p "pfx_password" /v "D:\Setup.cab" All the steps are successfull except the last one with signtool that returns:

Replacing a fixed part of PWD in a tcsh prompt

别等时光非礼了梦想. 提交于 2020-01-04 06:30:43
问题 My prompt is currently displayed like here: [Aug-27 14:36] /x/y/z/w/u/v/dir1/dir2/dir3> What I would like to do is replace the constant partial-path of the current working directory /x/y/z/w/u/v with $WORK so eventually what will be displayed is [Aug-27 14:36] $WORK/dir1/dir2/dir3> /x/y/z/w/t/u is always the same path from which I usually do my work and for which I have a local variable $WORK set (very similar to the home ~ idea). A straight-forward solution will be most-welcomed as I really