Questions tagged as 'cmd'

1
answer

How to save return from java -version command in cmd

I have a problem saving in .txt the return of the "java -version" command executed in cmd. I'm running as follows: java -version >> "%temp%/resultado.txt" It creates the file but does not save the return to the file. Any other ping co...
asked by 26.05.2017 / 19:19
1
answer

Create script to execute program passing only part of the name

I created a small script ( .bat ) for the installation of several programs silently. Over time the programs will update by requiring that I edit the code to enter the version number of the program. Doubt: Is it possible to tell the...
asked by 23.03.2017 / 17:56
1
answer

Create bat to move files returned by findstr

Good afternoon everyone! I have encountered a problem every day where, I have several .xml to open and check if they have tags: < desc_produto >Riscos< /desc_Produto >" or < tp_mov>P01< /tp_mov> To do this, I...
asked by 24.04.2017 / 17:09
1
answer

List Services via CMD

I am using the wmic service get displayname, name, state command to list Windows services. I would like to know if it is possible to list one or more specific services via CMD. In this scenario I want to list the FirebirdServerDefaultIns...
asked by 17.05.2018 / 19:14
2
answers

Script bat not executed completely

I'm trying to make a script that builds my project maven and soon after it deploy it to wildfly . I used this perfectly in linux , but when attempting to migrate to Windows I find myself in the following situation: Aft...
asked by 20.02.2017 / 17:03
2
answers

How to close a .bat file with another .bat file

I have a .bat file running this code: cd C:\Users\PC\Desktop\nginx-1.10.2\php php-cgi -b 127.0.0.1:9000 But it needs to be open while it is being used. Is there any way to create another .bat to close this one? Thank you.     
asked by 07.12.2016 / 12:42
1
answer

Batch to locate a subfolder, move all files to a level above, and delete the folder

I have this structure: .. ..\FolderA\FolderX\File1.txt ..\FolderB\FolderX\File2.txt ..\FolderC\FolderD\FolderE\FolderX\File3.txt I need a batch that will locate all the "FolderX" folders in the subdirectories and move all th...
asked by 10.11.2015 / 15:48
1
answer

How to program a time to automatically shut down the computer with a batch file

I'm following a tutorial from the Super User site of the Stack Exchange site network, with the idea of programming the my computer to auto-shut down by passing X time, after running or double-clicking a .bat file, instead of usin...
asked by 01.11.2015 / 23:38
1
answer

Class not found in compile by Windows CMD

I'm not able to run my algorithms in Java through the Windows 8.1 terminal. It happens that always gives a class error not found, I already put the .class files together with .java and still can not find. What do I do to resolve? Here a...
asked by 25.09.2015 / 03:38
1
answer

Error installing SQL 2008 Express (Silent Mode)

The installation parameters are as follows, but when attempting to make an error and the installation is aborted. C:\Setup.exe /QS /ACTION="Install" /FEATURES="SQL" /INSTANCENAME="SQLEXPRESS" /SECURITYMODE=SQL /SAPWD=senha     
asked by 26.12.2014 / 15:46