Questions tagged as 'batch'

1
answer

How to do a batch loop to iterate the numbers

I need to make a batch file that iterates the numbers for example from 1 to 25, so the script that I was trying was such that. loop x firefox.exe -CreateProfile userx So I wanted to iterate the character x, from 1 to 25, to create 25 users...
asked by 28.06.2018 / 00:40
0
answers

Help, batch to ping different IP

I want to make a small batch where I can ping different IPs and only show me the data sent / received / lost, can it be done? or I'm dreaming something like: IP Enviados Recibidos Perdidos 172.0.0.1 15...
asked by 26.06.2018 / 19:06
1
answer

Problem with script to move files

I am trying to create a script (cmd) in Windows to move files of any type of extension from one folder to another but it is giving me problem after problem, every time I execute it I get the error "You can not find the specified route", I've a...
asked by 23.06.2018 / 13:50
0
answers

Server does not recognize php files

I have this simple php, it's just a connection, locally (my computer) when executing it from a batch if it works, but when doing it from the server it marks me the next error I can say if I put it in the folder httdoc and run it via web if it wo...
asked by 14.06.2018 / 18:32
0
answers

close Ports by Batch

You can close all these ports using .Bat 0-79,81-8079,8081-30799,30801-30809,30810-65535 bone 0 al 79,81 al 8079,8081 al 30799,30801 al 30809,30810 al 65535 I understand this source code opens them I want to close them with this @ech...
asked by 06.06.2018 / 07:31
0
answers

Administrator account in .bat

I am programming a .bat that opens a file as an administrator with a runas. This is the (simple) code: runas /user:%computername%\%username% /savecred "C:\Users\Usuario\Desktop\ola.bat" Like I can automatically type the name of the computer...
asked by 02.06.2018 / 16:24
0
answers

Problem with "quotes" and Paths in a CMD script (Batch), passing arguments to an EXE

Something very strange is happening to me with this script. For some reason the variable% PTH% is giving problems with the quotes, and because of this you can not use PATHs that contain spaces. @echo off set CurrDir=%cd% set BatchFileDir=%~dp0...
asked by 29.05.2018 / 18:28
0
answers

Copy from one server (windows) to another server (windows)

I can not find the correct syntax to make a copy , I already did ping and if there is an answer between the servers. A file is going to be loaded from 180.176.114.15 that is in C and it is called installAgent.log and it will...
asked by 30.05.2018 / 18:49
0
answers

Delete folders of DETERMINED NAME in Bat subfolders

As I can delete all the hidden folders in a folder I have this script but it already directs a specific folder. rd /s /q "C:\Temporal_BackUps\rock\Bins\Rubbish" and I want to delete only the "Rubbish" folder without having to write as many...
asked by 23.05.2018 / 20:26
0
answers

travel in Move by Batch or Bat

I want to make a "Move" copy all the contents of subfolders. I have this but it does not make the journey. move /E /C /Y /S C:\Temporal_BackUps\*.* D:\Servidor\BackUps_Todos_Full     
asked by 23.05.2018 / 20:20