Questions tagged as 'batch'

2
answers

How to create a TXT from batch without lines or spaces inside 100% Virgin

I tried to do this: echo. > file.txt the problem that when I open it with notepad ++ it tells me that it weighs 1 Bite, there is a space and an additional line to the first one inside the file.txt, what I need is that it is 0 Bites and 100...
asked by 26.12.2016 / 02:58
2
answers

Execute an .exe from the windows start with batch

I have a problem that I can not solve. I have an .exe that I want to start every time Windows starts. It is loaded in the windows registers: REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v Iniciarsoft/t REG_SZ /d "C:...
asked by 16.12.2016 / 17:02
1
answer

Run a macro from a .bat

I wanted to know if it is possible to run a macro in Excel from a .bat file since I can not find a way to do it. The macro that I own works correctly but I need it to run when I run the .bat I would appreciate it if you know something,...
asked by 18.12.2018 / 17:43
1
answer

How to store folder name created in variable to be used by FTP?

I'm trying to make a script that creates a folder with the name of the day and then in that folder put a file downloaded by ftp The part of creating the folder is done which is the following: cd.. cd.. cd Carpeta mkdir %date:~-4,4%%date:~3,...
asked by 29.11.2018 / 17:04
1
answer

Window in Batch

I want to make a joke window in which I seem to be decrypting something, but I want the binary block to be at a certain point so that it is readable by "descrambling" I would also like to make the ones and zeros constantly change between them....
asked by 01.10.2018 / 18:41
1
answer

problem with tildes when listing files with cmd

I am trying to list the files of a directory in a text file and then print that list. I use the dir /s /b >info.txt instruction and it does but I have some files with names with accents and I am not able to resolve the issue. I'm in a...
asked by 10.08.2018 / 16:58
1
answer

How do I create a backup in PostgreSQL with .batch

I have a bat that creates the backup of a BD in PostgreSQL. This is the batch code: @echo off SET PG_BIN="C:\Program Files\PostgreSQL\bin\pg_dump.exe" SET PG_HOST=localhost SET PG_PORT=5432 SET PG_DATABASE=CELAUSystem SET PG_USER=postgres SET...
asked by 11.07.2018 / 04:34
1
answer

BATCH - Copy N files from a Windows directory

I am doing a process to copy different files from different folders, with the particularity that I need to pass, for example, 30 files of a directory (which contains more than 100). The 30 that I must pass, no matter what they are, should be 30....
asked by 13.04.2018 / 21:35
1
answer

Help with Batch script

I am trying to make a batch script to generate routes for some projects or folders, my code is as follows: @echo off title Rutas de Proyectos echo [1] Solatino ASP.NET y Angular echo [2] Solatino Web con Angular set/a a=1 set/a b=2 set/p opc...
asked by 05.04.2018 / 20:17
2
answers

Ping to IP specified

I have the following script, what I want is to send a sustained ping to the indicated IP and I save it in a .txt, but it only saves me the first line. @echo off :bucle set a1=. set a2=. set /p IP=ESCRIBE IP; ping -n 1 10.10.222."%IP%" | fi...
asked by 31.10.2017 / 20:29