batch-file Questions
5
Solved
I am using jasypt 1.9.2 in Windows 7 x64 cmd. Here's encrypt.bat content:
ECHO ON
set SCRIPT_NAME=encrypt.bat
set EXECUTABLE_CLASS=org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI
set EXEC_CLASS...
Isherwood asked 20/11, 2015 at 12:32
3
Solved
I have a batch file which contains nested loop with continue-like command:
for %%i in (1, 2, 4, 8, 16, 32, 64, 128, 256) do (
for %%j in (1, 2, 4, 8, 16, 32, 64, 128, 256) do (
if %%i gtr %%j go...
Heracliteanism asked 1/4, 2016 at 11:43
3
I am trying to create a batch (.bat) file for windows XP to do the following:
If (file.txt contains the string 'searchString') then (ECHO found it!)
ELSE(ECHO not found)
So far, I have found a ...
Vitreous asked 11/4, 2011 at 20:4
2
Good Day All!
I have a batch script, and when I echo a variable like this
echo %variable1%
I get out put like this
TestLine1
TestLine2
TestLine3
TestLine4
My goal would be to modify this vari...
Millimicron asked 16/11, 2017 at 17:2
5
Solved
What's the best way to declare and use a boolean variable in Batch files? This is what I'm doing now:
set "condition=true"
:: Some code that may change the condition
if %condition% == true (
::...
Hickson asked 22/2, 2016 at 2:29
4
Solved
How would I be able to add line numbers to a text file from a batch file / command prompt?
e.g.
1 line1
2 line2
etc
Joey asked 12/5, 2011 at 17:28
5
Solved
I need a system variable and assign an empty string value to it. I've tried
setx samplepassword ""
But upon echo %samplepassword% , what should be an empty string is instead %samplepassword%. No...
Numidia asked 9/8, 2016 at 3:20
5
When i run my JMeter script on commandline mode, i am getting below error.
But the same script is running perfectly fine on GUI mode.
Need some help here to fix this.
Below is the error:
C:\...
Intelligencer asked 19/3, 2017 at 18:15
5
Solved
I have a Windows Command script designed to merge the dev branch into a project branch. It starts by reading the current branch name, stashing changes, fetching and merging the dev and project bran...
Narcotic asked 1/7, 2014 at 23:40
5
Solved
How could I execute a set of .SQL files (each does some data transformations) from within SQL Server Management Studio?
What other alternative are there for executing .SQL files in batch?
Grubbs asked 8/5, 2009 at 17:0
6
Solved
Can someone give me an example of where a batch script would act differently with or without delayed expansion? Are there any situations where you would NOT want to use delayed expansion? Thanks.
Endblown asked 11/5, 2012 at 20:39
6
Solved
Is there an command i can use on cmd to switch to/focus on selected app window?
Lets say i have three apps working: A, B, C and currently i m focused on B. Is there a command (not shortcut) to swi...
Caracal asked 14/3, 2016 at 13:27
2
Solved
It there a way in batch to change the background from black to blue. It must not change the default just for the window that is been run. so if i launch cmd later then it will be the default. If an...
Irrelevance asked 28/3, 2014 at 10:29
3
Solved
I want to prompt the user for some input detail, and then use it later as a command line argument.
Syllabi asked 4/10, 2009 at 8:55
7
Solved
I need to modify batch file.
I have a batch file that opens many tabs when I click icon from desktop. These tabs are opened in my ALREADY OPENED default browser.
I would like to have a NEW WINDOW...
Mcavoy asked 15/11, 2011 at 21:6
1
I have a function in a PowerShell module which creates a log file and starts a transcript using that file (see below). When running a PowerShell script, this works great and captures all output.
W...
Seminar asked 4/4, 2017 at 9:36
9
Solved
I have some file such as AAA_a001.jpg, BBB_a002.jpg, CCC_a003.jpg in Windows 7
and I'm trying to use batch to rename these file to a001_AAA.jpg, a002_BBB.jpg, a003_CCC.jpg.
Just to swap the conten...
Logjam asked 23/12, 2012 at 17:42
7
Solved
I don't know if this is the right place to ask this question, but I am going to ask it anyway.
I have a frequent problem when I try to rename one of my folders; it says access is denied. I have fu...
Judaic asked 28/12, 2016 at 15:44
8
I need to do a software audit of more than 300 computers that are neither on the same network, or owned by the same company.
Is there an command or small program (that can be run without installin...
Orchestra asked 16/9, 2013 at 4:29
6
I am trying to find out how to move the mouse cursor N pixels to some direction.... through a command script, since I cannot install anything on my computer.
I basically try to keep the screen act...
Rodrickrodrigez asked 10/12, 2012 at 19:11
3
Solved
Following line recursively deletes only HIDDEN files with .mta extension
del /S /A:H <folder_name> *.mta
What I want to do is, to delete both: hidden and normal files with .mta extension. ...
Pronunciation asked 11/12, 2011 at 12:1
15
Solved
I have a Windows batch file I'm creating, but I have to ECHO a large complex string, so I'm having to put double quotes on either end. The problem is that the quotes are also being ECHOed to the fi...
Behnken asked 29/4, 2009 at 22:56
6
I am really new to batch file coding and need your help.
I've these directories:
c:\rar\temp1\xy.jpg
c:\rar\temp1\sd.jpg
c:\rar\temp1\dd.jpg
c:\rar\temp2\ss.jpg
c:\rar\temp2\aa.jpg
c:\rar\temp2\...
Wesleyanism asked 24/7, 2014 at 11:37
8
Solved
I would like to know that how we can check the available memory in batch script? Is there any method already available? If it is not possible in batch script then is there any other way by which we...
Adabelle asked 5/7, 2012 at 11:15
4
In Windows 7, If I want to find some text in a file, I use the following command.
findstr "find_this" trace.log
this prints all lines that contains text "find_this". OK.
But I need to print also...
Lactose asked 29/11, 2016 at 10:41
© 2022 - 2025 — McMap. All rights reserved.