cmd

cx-freeze PermissionError: [Errno 13] Permission denied

故事扮演 提交于 2020-05-24 05:20:42
问题 I am attempting to use cx_Freeze as an alternative to my usual application for converting .py to .exe (auto-py-to-exe). When I run it in cmd I get: C:\WINDOWS\system32>cxfreeze-quickstart Project name: FE Version [1.0]: 1.0 Description: File Edit and more!!! Python file to make executable from: File Create.py Executable file name [File Create]: File Create Executable (C)onsole application, (G)UI application, or (S)ervice [C]: C Save setup script to [setup.py]: C:\Users\tom\Documents\python\

CMD batch - encode file to base 64 and trim characters and new line

南笙酒味 提交于 2020-05-23 11:45:32
问题 I'm trying to make a batch file from CMD with the following commands: Convert file to base 64 - using certutil command this is how the contents of the base 64 looks like (B64.txt): Trim the base 64 - basically, I want to remove -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- this part is done , the only thing left is trim the newline characters to make a one liner of base64, because I will be passing this to a request payload. This is what I did so far: @ECHO OFF cd /filePath

Copy all files in his own parent

孤人 提交于 2020-05-17 06:08:22
问题 Hi everyone I need to extract multiple java files, from one directory to a root directory, but I need to preserve de first level. there are many files and many different folders, so any help is appreciated Here is an example: What I need to do is make it so that |ROOTDIRECTORY | |FOLDER1 | | SUBFOLDER | | | JA.JAVA | |FOLDER2 | | SUBFOLDER | | | AAAA.JAVA | |FOLDER3 | | SUBFOLDER | | | JAAAA.JAVA | |FOLDER4 | | SUBFOLDER | | | |SUBSUBFOLDER | | | JAV.JAVA Becomes |ROOTDIRECTORY | |FOLDER1 | |

How to use “ren” or “rename” to truncate the file name until underscored?

。_饼干妹妹 提交于 2020-05-17 06:00:55
问题 I have some file names as below saved in C:\aaa\temp Before: 92485345_A0027777882244.zip 87493354_A0027684085444.zip 87111901_A0027871905777.zip some fixed rule in the file name: I need to delete the characters until the underscore "_" The name after underscore always begins with A0027 Can someone please teach me how to write a script to batch rename them as below: After: A0027777882244.zip A0027684085444.zip A0027871905777.zip 回答1: If the number of characters in front of the underscore _ is

“pip install models” - "python setup.py egg_info” failed with error code 1

与世无争的帅哥 提交于 2020-05-16 01:12:48
问题 After trying to install 'models' module I get this error: C:\Users\Filip>pip install models Collecting models Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Filip\AppData\Local\Temp\pip-install-_exhlsc1\models\setup.py", line 25, in <module> import models File

“pip install models” - "python setup.py egg_info” failed with error code 1

一笑奈何 提交于 2020-05-16 01:12:27
问题 After trying to install 'models' module I get this error: C:\Users\Filip>pip install models Collecting models Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Filip\AppData\Local\Temp\pip-install-_exhlsc1\models\setup.py", line 25, in <module> import models File

“pip install models” - "python setup.py egg_info” failed with error code 1

大城市里の小女人 提交于 2020-05-16 01:10:59
问题 After trying to install 'models' module I get this error: C:\Users\Filip>pip install models Collecting models Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Filip\AppData\Local\Temp\pip-install-_exhlsc1\models\setup.py", line 25, in <module> import models File

“pip install models” - "python setup.py egg_info” failed with error code 1

◇◆丶佛笑我妖孽 提交于 2020-05-16 01:10:59
问题 After trying to install 'models' module I get this error: C:\Users\Filip>pip install models Collecting models Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Filip\AppData\Local\Temp\pip-install-_exhlsc1\models\setup.py", line 25, in <module> import models File

Java ProcessBuilder ignores Whitespaces

馋奶兔 提交于 2020-05-15 08:09:49
问题 I try to start a program via the Windows command shell out of Java and experience errors I cannot solve myself. I use a ProcessBuilder to pass the arguments to the command shell. Snippet: try{ List<String> list = new ArrayList<String>(); list.add("cmd.exe"); list.add("/c"); list.add("C:\\Program Files (x86)\\TightVNC\\tvnserver.exe -controlservice -connect 172.20.242.187"); ProcessBuilder builder = new ProcessBuilder(list); System.out.println(builder.command()); builder.redirectErrorStream

Java ProcessBuilder ignores Whitespaces

蓝咒 提交于 2020-05-15 08:09:04
问题 I try to start a program via the Windows command shell out of Java and experience errors I cannot solve myself. I use a ProcessBuilder to pass the arguments to the command shell. Snippet: try{ List<String> list = new ArrayList<String>(); list.add("cmd.exe"); list.add("/c"); list.add("C:\\Program Files (x86)\\TightVNC\\tvnserver.exe -controlservice -connect 172.20.242.187"); ProcessBuilder builder = new ProcessBuilder(list); System.out.println(builder.command()); builder.redirectErrorStream