cmd

Node Child Process Exec Command Failed with error code 1

狂风中的少年 提交于 2020-08-26 16:27:49
问题 I am trying to execute some line using node js child process and getting error. Following is my code: let cmd : string = "code " + PROJECTS[value]; exec(cmd, function callback(error, stdout, stderr) { console.log("started console app"); }); ERROR : cmd:"C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\code-settings-syn... (length: 82)" code:1 killed:false message:"Command failed: C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\c... (length: 99)" signal:null stack

How do I run C++ program in Powershell, just like CMD?

混江龙づ霸主 提交于 2020-08-25 08:51:41
问题 Like in CMD, to run a C++ program, I use the command g++ filename.cpp , then I run it using the command a.exe , which opens the output in the CMD itself. How to do such thing using a PowerShell? I am unable to open the file by simple command as a.exe . Am I doing it the wrong way? 回答1: It is a best practice to use the invocation operator and to quote the command. & ".\a.exe" p1 p2 p3 PowerShell will also allow the use of / as the path separator. & "./a.exe" p1 p2 p3 "p4 with space" 回答2: by

R cmd check Latex error: FATAL pdflatex - GUI framework cannot be initialized

☆樱花仙子☆ 提交于 2020-08-24 07:06:13
问题 I am checking my package and this is actually the last remaining problem. The pdf file cannot be compiled and the logfile tells me 2015-10-15 14:17:47,430+0200 INFO pdflatex - running 'initexmf --quiet --update-fndb' to refresh the file name database 2015-10-15 14:17:50,276+0200 FATAL pdflatex - GUI framework cannot be initialized. 2015-10-15 14:17:50,276+0200 FATAL pdflatex - Info: 2015-10-15 14:17:50,276+0200 FATAL pdflatex - Source: Libraries\MiKTeX\UI\Qt\mikuiqt.cpp 2015-10-15 14:17:50

Error while trying to write inputs to running console app with a batch

谁说胖子不能爱 提交于 2020-08-20 12:09:17
问题 I have an exe file that I want to execute with a batch file. Exe file is a third party console app that will prompt for input three times. So I want to fill it in with an empty line, someText and someOtherText (echo. echo someText echo someOtherText) | call config.exe remove But I'm getting this error: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read. What could be the issue, please advise at least the direction to

Error while trying to write inputs to running console app with a batch

别等时光非礼了梦想. 提交于 2020-08-20 12:09:06
问题 I have an exe file that I want to execute with a batch file. Exe file is a third party console app that will prompt for input three times. So I want to fill it in with an empty line, someText and someOtherText (echo. echo someText echo someOtherText) | call config.exe remove But I'm getting this error: Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read. What could be the issue, please advise at least the direction to

Fatal error in launcher: Unable to create process using “file path1” file path2" : The system cannot find the file specified

时间秒杀一切 提交于 2020-08-19 05:53:27
问题 I am trying to use different versions of Python on my Windows pc and I'm getting this error when using pip : Fatal error in launcher: Unable to create process using '"c:\users\ryanm\appdata\local\programs\python\python38\python.exe" "C:\Python38\Scripts\pip.exe" ': The system cannot find the file specified. I understand that this might mean there's two PATH to each of those locations so it's confused, but c:\users\ryanm\appdata\local\programs\python\python38\python.exe doesn't even exist on

Fatal error in launcher: Unable to create process using “file path1” file path2" : The system cannot find the file specified

痴心易碎 提交于 2020-08-19 05:49:50
问题 I am trying to use different versions of Python on my Windows pc and I'm getting this error when using pip : Fatal error in launcher: Unable to create process using '"c:\users\ryanm\appdata\local\programs\python\python38\python.exe" "C:\Python38\Scripts\pip.exe" ': The system cannot find the file specified. I understand that this might mean there's two PATH to each of those locations so it's confused, but c:\users\ryanm\appdata\local\programs\python\python38\python.exe doesn't even exist on

How to get Windows batch date stamp that is locale independent? [duplicate]

我们两清 提交于 2020-08-15 10:43:19
问题 This question already has answers here : How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name? (28 answers) How do I get the day month and year from a Windows cmd.exe script? (13 answers) Batch script date into variable (8 answers) Closed last year . In a Windows batch file, is it possible to get the text of date in some location independent form to get the location independent date stamp as a string? To make the question clear... In

Is there a way to hash a command output without the use of a temp file?

[亡魂溺海] 提交于 2020-08-11 00:34:23
问题 In command-prompt, you can see the md5 or other hash of a file using certutil -hashfile <filepath> <hash algorithm> . This was the only option I can find to retrieving the hash of a file without encrypting it first. My question is if there is a way to hash a sentence or command outputs? What I am trying to figure out is if there is maybe a specific command that I can use in case like: set /p "var=input something" && <hash command> %var% or use certutil -hashfile with %var% instead of a file

Is there a way to hash a command output without the use of a temp file?

99封情书 提交于 2020-08-11 00:31:08
问题 In command-prompt, you can see the md5 or other hash of a file using certutil -hashfile <filepath> <hash algorithm> . This was the only option I can find to retrieving the hash of a file without encrypting it first. My question is if there is a way to hash a sentence or command outputs? What I am trying to figure out is if there is maybe a specific command that I can use in case like: set /p "var=input something" && <hash command> %var% or use certutil -hashfile with %var% instead of a file