batch-file

Downloading file from URL using start chrome

假装没事ソ 提交于 2020-08-26 10:36:10
问题 I have a batch file that opens a URL to download a csv file, then I need to move and then rename that csv form downloads folder to other one. What I have is: @echo off SET CCDIR=C:\Users\(username)\Desktop SET LOADDIR=C:\Users\(username)\Downloads ECHO *************************************************************************** ECHO Downloading the file ECHO *************************************************************************** start chrome (URL string) :NEXT ECHO ************************

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

Is there way to detect install location without uninstall registry nor C:\Windows\Installer?

徘徊边缘 提交于 2020-08-20 06:13:54
问题 Some of the executable that I need to detect is installed properly, but has not written InstallLocation in the usual Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ I also checked C:\Windows\Installer but the GUID was not found with msi file. Is there any way to know where the files were installed? 回答1: MSI API : Here is a sample using VBScript to get the installation path for Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.50727 - update GUIDs for your

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