command-prompt

Command Prompt Scripting to rename files

大城市里の小女人 提交于 2019-12-11 11:49:16
问题 I got some help scripting a batch script to date stamp image files from foxidrive. However, i messed up on the directory and it date stamped everything in that folder. So right now i have 1000+ images (.jpg) files with this string on the end of each file name " - 09-07-2014 - 09-07-2014 - 09-07-2014 - 09-07-2014 - 21-07-2014 - 21-07-2014.jpg". Is there a way to rename these by removing the string above from these file names on every .jpg file on a given folder? I am planning to write this on

How to send text with space in Android UIAutomator -e command line parameter

吃可爱长大的小学妹 提交于 2019-12-11 11:15:54
问题 I want to know how to send text with space in Android UIAutomator -e option (name-value pair) For Ex: adb shell uiautomator runtest LaunchSettings.jar -c com.uia.example.my.LaunchSettings I want to send like adb shell uiautomator runtest LaunchSettings.jar -c com.uia.example.my.LaunchSettings -e appName Temple Run But getting error message like: Unsupported standalone parameter. tried like "Temple Run" or 'Temple Run' but no use. Please suggest 回答1: String defaultAppName = "My super App";

Key Bindings in Command Prompt with Java?

我怕爱的太早我们不能终老 提交于 2019-12-11 10:37:59
问题 I have a java program running in a loop in command prompt (I open command prompt and execute a java command). I wanted to setup some key binding (like ctrl+q) so that I could exit the java program while it is running (the program is running through a while loop). Is there anyway to do this? I was trying to use key mappings but wasn't getting it to work. Do custom key mappings not work in command prompt? 回答1: As keith.layne points out, this is OS specific. For console programs, the OS provides

Hiding Command Prompt with CodeDomProvider

空扰寡人 提交于 2019-12-11 09:53:16
问题 I've just got my own little custom c# compiler made, using the article from MSDN. But, when I create a new Windows Forms application using my sample compiler, the MSDOS window also appears, and if I close the DOS window, my WinForms app closes too. How can I tell the Compiler? not to show the MSDOS window at all? Thank you :) Here's my code: using System; namespace JTS { public class CSCompiler { protected string ot, rt, ss, es; protected bool rg, cg; public string Compile(String se, String

Selenium Server Setup Errors

落花浮王杯 提交于 2019-12-11 09:14:26
问题 I am trying to start a Selenium server in the command line, but it returns the following message: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\a607270>java -jar selenium-server-standalone-3.4.0.jar -role hub 09:49:50.198 INFO - Selenium build info: version: '3.4.0', revision: 'unknown' 09:49:50.199 INFO - Launching Selenium Grid hub 2017-05-30 09:49:52.134:INFO::main: Logging initialized @2625ms to org.seleniumh q.jetty9.util.log

InstallScript GetLine() can not read text file contains result from command prompt

我与影子孤独终老i 提交于 2019-12-11 08:47:19
问题 My Installation needs to check the result of a command from cmd.exe . Thus, I redirect the result of the command to a text file and then try to read the file to get the result as follows: // send command to cmd to execute and redirect the result to a text file // try to read the file szDir = "D:\\"; szFileName = "MyFile.txt"; if Is(FILEEXISTS, szDir ^ szFileName) then listID = ListCreate(STRINGLIST); if listID != LIST_NULL then if OpenFIleMode(FILE_MODE_NORMAL) = 0 then if OpenFile

How Can I run a bat file simultaneously with the vbs script running from same bat file

℡╲_俬逩灬. 提交于 2019-12-11 06:24:51
问题 How can I run a bat file simultaneously with the vbs script running from same bat file. ie., can I input data into the cmd and the vbs file is also open along with it. I am planning to make an unclosable vbs file but I want the bat file to be running with it too. for example, <BR> @ECHO off<BR> color FC<BR> cls <BR> :start<BR> ECHO.<BR> ECHO 1. Hello there is no escape from me.<BR> ECHO 2. Well come to hell.<BR> ECHO 3. Bye-Bye.<BR> C:\Windows\System32\wscript.exe "C:\Users\user\Desktop\bat

Language version in Developer Command Prompt for VS 2017

元气小坏坏 提交于 2019-12-11 06:03:55
问题 I created the following program public class Program { static void Main() { System.Console.WriteLine("Hello, World!"); } } When compiling the code in the command prompt ( c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc hello.cs ) which returns Microsoft (R) Visual C# Compiler version 4.7.3056.0 for C# 5 Copyright (C) Microsoft Corporation. All rights reserved. This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no

ClearCase find and exec with %CLEARCASE_PN% in cmd always returns same element

巧了我就是萌 提交于 2019-12-11 05:52:29
问题 I executed the following command in cleartool.exe: cleartool> ! Microsoft Windows XP [Version 5.1.2600] ... X:\dyn_view\vob\path>cleartool find . -type l -exec "cleartool describe %CLEARCASE_PN%" -print But the element output is always the same regarding exec , albeit being different in print . How to output the correct list in the exec part of the command? Example output: symbolic link ".\path\fileA.txt" -> ../../path/fileA.txt created ... .\anypath\fileB.txt symbolic link ".\path\fileA.txt"

Running applications within PowerShell window

末鹿安然 提交于 2019-12-11 05:27:49
问题 I'm trying to move away from Command Prompt, because it's a dead-end, over to PowerShell (ISE). I haven't figured out how to run command-line applications within the PowerShell (ISE) window. Everytime I use Start-Process a Command Prompt window appears (and disappears). I've seen some people suggest -Wait and -NoNewWindow but those haven't worked for me so far. Start-Process MyApplication.exe This starts Command Prompt, runs the application and disappears. PowerShell remains responsive. Start