Questions tagged as 'batch'

0
answers

execute cmd from pstool with several parameters

In my work I have to enter multiple hosts and execute wmic commands to get information from each computer using PSEXEC from pstool. An example of the command that I have to enter to connect is the following: psexec \HOST cmd.exe This is...
asked by 12.10.2018 / 19:13
1
answer

Run .bat file without right click to run as administrator

I am running a .bat file, it happens that to execute it I must right click and "Run as Administrator", I am looking for the way to execute the bat without having to do this, but in the same bat the permissions of the user to Administrator. This...
asked by 10.10.2018 / 23:13
0
answers

Explanation of file commands.bat

I found the following code, apparently it allows me to execute commands without the antivirus stopping any of the processes that I send to the console. @echo off REM .bat con permisos de administrador :------------------------------------- RE...
asked by 09.10.2018 / 22:23
0
answers

Any way to send or send emails from SQL server 2008R2?

I have SQL server 2008 R2 I want to send emails to all my registered SQL users but I do not have the Emails function Installed in the management studio SQL I want to know if there is any way to send emails taking the variables in the column: S...
asked by 15.10.2018 / 14:07
1
answer

Insert batch txt records into MySQL with JAVA

I am working in JAVA and I need to save the records that are in a file.txt to my MySQL database, the problem is that they are many records and inserting them one by one takes a long time. I need to know how to apply the methods addBatch a...
asked by 03.09.2018 / 15:28
0
answers

Delete files by their name or part of it with a .BAT

I have a problem related to the automation of a task. I need to create a .bat file that deletes some logs generated by an application that have a .txt extension and this I do in the following way: cd "C:\Users\pablo\Desktop\prueba_script" del...
asked by 27.08.2018 / 16:56
0
answers

Copy the result of a search to another directory in CMD

I'm new using the console I'm trying to copy the result of a search to a specified directory C:\files> dir *SILC*.* the result of the previous command I want to copy it to the path D: \ files Any suggestions? Thanks     
asked by 16.08.2018 / 01:06
0
answers

Open Bat as administrator from the command line of Bat himself

Is it possible for the bat to auto-execute itself as an administrator without having to right-click and execute as administrator? I've tried with: Runas /user: %computername%\admin But it asks for a password, it's with the RunAs command...
asked by 21.07.2018 / 22:49
1
answer

Mencoder can not initialize video driver in batch (Windows 7 ultimate)

is my first question on Stackoverflow. I have some AVI in a folder that I wish to convert to MP4. The thing is, when I call mencoder.exe it shows an error. The command line that I am using is the following: mencoder.exe video.avi -mc 0 -of ra...
asked by 16.07.2018 / 00:06
1
answer

Change Automatic Names

Good day I have this Scrip that I would like to modify and that when I double-click it I create ps9999.patch from number 1 without being typing numbers one by one is there any way? @echo off title Crear Nombres a partir de un solo nombre color...
asked by 08.07.2018 / 15:15