batch-file

can i send answer to binary file with batch file

五迷三道 提交于 2020-01-05 13:11:30
问题 I have Binary file and run that with a batch file with this code : call "login.exe" site sample.com -user myusername then binar file ("login.exe") waiting for insert password (ask password from standard input) And i want to send password with echo or sendkey to that using from batch file I'm using from this code call run_binary.bat timeout /t 1 %SendKeys% "password{ENTER}" what can i do ? that is possible ? 回答1: this is a good point to start if you want to interact with open windows from

can i send answer to binary file with batch file

女生的网名这么多〃 提交于 2020-01-05 13:10:21
问题 I have Binary file and run that with a batch file with this code : call "login.exe" site sample.com -user myusername then binar file ("login.exe") waiting for insert password (ask password from standard input) And i want to send password with echo or sendkey to that using from batch file I'm using from this code call run_binary.bat timeout /t 1 %SendKeys% "password{ENTER}" what can i do ? that is possible ? 回答1: this is a good point to start if you want to interact with open windows from

How can i change the colour of a command window via batch script when using the start command

孤人 提交于 2020-01-05 12:34:22
问题 i am running a number of small batch scripts to copy data from one location to another using robocopy i have pasted a sample below. what i need to do for each of these batch files is get it to open and run the robocopy commands listed (which it is doing) but i need the robocopy output windows to be in set colours per batch file. the batch file reads as below start robocopy.exe "source" "destination" /MIR /Log:e:\outputlog.txt /TEE start robocopy.exe "source" "destination" /MIR /Log:e:

How does Windows locate files input in the shell?

∥☆過路亽.° 提交于 2020-01-05 12:31:10
问题 I looked for this question over the site but it looks like it's never been asked, so I thought I would share the answer to anyone looking for it. Q: When I input executables files' name in cmd.exe, through shell-execution functions or from a Batch file, how does Windows locate the external executable file to be called? 回答1: I do not understand what "shell-execution function" is referring to, so I will ignore it. But the rules for launching an executable from the CMD.EXE command line, or from

Batch script to check the Java home and compare java version

柔情痞子 提交于 2020-01-05 12:28:28
问题 Hi I need a batch script to check whether java home is available in the system and script to compare the java version My requirements are 1.) Script needs to check whether java home is set in the system.I think "echo %JAVA_HOME%" will do it.But if Java Home is not available it needs to display a message showing "Java home is not available.Please set the java home in Computer>Properties>Variables path". 2.) It needs to check the java version in the system and if the java vesion is higher than

Batch rename files with the folder name and sequence number - Send To Menu

孤人 提交于 2020-01-05 12:08:15
问题 I have a folder called sales. I have imgxy.jpg, imgab.jpg etc in that folder. When I right click the sales folder and send to rename.bat file (I have already copied the rename.bat file into c:\documents and settings\username\send To ) I want the files in the sales folder to change to sales1.jpg, sales2.jpg etc. This behaviour should be true for anything I send to this .bat file. The following code was working properly on windows 7 last night. Now I am om windows xp sp3 and it doest work. It

Windows batch - Delayed expansion removes exclamation mark

可紊 提交于 2020-01-05 11:48:33
问题 I wrote batch script to copy CSS files over to a certain directory and the problem is exclamation marks are removed when I open the CSS files in the destination directory . The original CSS contains styles with exclamation marks such as: .foo { color: pink !important; } My CSS outcome becomes .foo { color: pink important; } I looked into the root cause of this and based on: exclamation point being removed constantly in batch file But I cannot figure out where I need to disable delayed

Windows batch - Delayed expansion removes exclamation mark

我们两清 提交于 2020-01-05 11:48:09
问题 I wrote batch script to copy CSS files over to a certain directory and the problem is exclamation marks are removed when I open the CSS files in the destination directory . The original CSS contains styles with exclamation marks such as: .foo { color: pink !important; } My CSS outcome becomes .foo { color: pink important; } I looked into the root cause of this and based on: exclamation point being removed constantly in batch file But I cannot figure out where I need to disable delayed

Exclude multiple folders with Dir command

拈花ヽ惹草 提交于 2020-01-05 10:10:54
问题 I had search thru the forum with excluding multiple files while using DIR command. But didn't find what i really needed. Some are even with PHP or VBS, really don't know how they works. What I'm trying to do is *DIR*ing all profile folders and also excluding certain default folders, this is a part of showing what and how many users are having profiles on that computer. I will explain a bit more because i may not fully be understood what my needs are. If i use the DIR without findstr . DIR /A

Cannot determine the location of the VS Common Tools folder

给你一囗甜甜゛ 提交于 2020-01-05 10:09:45
问题 I have a batch file that calls MSBuild and builds three Visual Studio solutions: call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" MSBuild solution0.sln /property:Configuration=Release MSBuild solution1.sln /property:Configuration=Release MSBuild solution2.sln /property:Configuration=Release This works fine. However, I want to prompt the user to select a version of the program to build. Depending on the user input we build a particular set of solutions. My problem is