cmd

PyInstaller .exe file does nothing

此生再无相见时 提交于 2021-02-07 06:24:14
问题 After 3 days, I can't get a python program packaged into a .exe file. I've tried py2exe (which continuously missed modules), and PyInstaller. Here's the complicated part. My program uses a lot of additional installed modules (coopr, pyomo, openpyxl, glpk, cbc, pyutilib, numpy, etc.). These in turn import all kinds of other things, and I can't track it down (the PyInstaller warning log lists 676 lines of missing or potentially unneeded modules.) However, I've gotten (by adding imports of

PyInstaller .exe file does nothing

会有一股神秘感。 提交于 2021-02-07 06:23:09
问题 After 3 days, I can't get a python program packaged into a .exe file. I've tried py2exe (which continuously missed modules), and PyInstaller. Here's the complicated part. My program uses a lot of additional installed modules (coopr, pyomo, openpyxl, glpk, cbc, pyutilib, numpy, etc.). These in turn import all kinds of other things, and I can't track it down (the PyInstaller warning log lists 676 lines of missing or potentially unneeded modules.) However, I've gotten (by adding imports of

How to get position of the sub string in string in batch

二次信任 提交于 2021-02-07 05:59:28
问题 Get The position of the substring, Set str1=This is Test string Set sstr=Test Here i need to get the position of "Test"(8). Thanks... 回答1: @echo OFF SETLOCAL Set "str1=This is Test string" Set "sstr=Test" SET stemp=%str1%&SET pos=0 :loop SET /a pos+=1 echo %stemp%|FINDSTR /b /c:"%sstr%" >NUL IF ERRORLEVEL 1 ( SET stemp=%stemp:~1% IF DEFINED stemp GOTO loop SET pos=0 ) ECHO Pos of "%sstr%" IN "%str1%" = %pos% (This returns "9", counting the first position as "1". The definition is in the mind

System Variable path is different in command prompt

半世苍凉 提交于 2021-02-07 05:29:06
问题 I've seen different kind of problems around, but I'm fighting with this for a whole day, so please give me some help :) Short story : I have different PATH variable in System Variables panel and cmd. Can't run exe files? Longer story : I'm trying to install Ruby. Tried with different versions, but the problem is the same: I have my PATH value updated, Ruby is there. BUT when using it from cmd, ruby is not recognized. echo %PATH% gives different value from the one in Environment Variables

Create custom Windows 10 notification boxes

只愿长相守 提交于 2021-02-07 04:31:20
问题 in Windows 10 there are those gray notification boxes in the lower right corner. They come when you plug in a USB, when Updates were installed or when a virus was found by windows defender. My question: How can i create these things? (with a custom message), if possible in vbs or batch as than they would be the easy to call from all programming languages. I know that this is possible as these boxes will also popup when someone pokes you in teamspeak. Thank you for any answers! 回答1: Those are

How to check if Docker is running on Windows?

被刻印的时光 ゝ 提交于 2021-02-07 02:43:30
问题 I'd like to know how to check if Docker is running on Windows by means of the command line (cmd or powershell). Although, I've found several posts indicating the solution to this, they are for Linux environments: How to check if docker is running or not How to check if docker daemon is running? I couldn't get the answer for Windows systems. 回答1: Try running either of these commands on Powershell or cmd, if docker is installed, you should get a error free response: docker --version OR docker

Command Line Compiling a Win Forms C# Application

霸气de小男生 提交于 2021-02-06 13:58:11
问题 I'm trying to create a script to compile an Windows Forms C# 2.0 project from the command line (I know, I know.. I'm reinventing the wheel.. again.. but if somebody knows the answer, I'd appreciate it). The project is a standard Windows Forms project that has some resources and references a couple external assemblies. Here is a list of the files: Program.cs // no need to expand on this on :) frmMain.cs // this is a typical C# windows forms file frmMain.designer.cs // .. and the designer code

Command Line Compiling a Win Forms C# Application

筅森魡賤 提交于 2021-02-06 13:57:50
问题 I'm trying to create a script to compile an Windows Forms C# 2.0 project from the command line (I know, I know.. I'm reinventing the wheel.. again.. but if somebody knows the answer, I'd appreciate it). The project is a standard Windows Forms project that has some resources and references a couple external assemblies. Here is a list of the files: Program.cs // no need to expand on this on :) frmMain.cs // this is a typical C# windows forms file frmMain.designer.cs // .. and the designer code

Open CMD in the Visual Studio Code terminal

↘锁芯ラ 提交于 2021-02-06 10:32:06
问题 Whenever I open the terminal in Visual Studio Code, I get a bash shell. I want to add CMD as a second shell. To do that, I went through the VS Code documentation and found this command: CTRL + SHIFT + ` But it only opens a second bash shell. Is there a shortcut for opening CMD in the integrated terminal, rather than opening it in an external console? 回答1: If you want to always open cmd, you can use the settings to configure that. From the docs: Correctly configuring your shell on Windows is a

How do I run a .lua script? [closed]

梦想的初衷 提交于 2021-02-06 09:46:05
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I need to execute a .lua script using windows command line (cmd). I've got my .lua file in the same folder in which my lua.exe is. I've tried several