Questions tagged as 'batch'

1
answer

How to put space before the SET / P variable in Batch? [closed]

I want to set the variable in the middle of the screen, but I can not put it! |____não_funciona____|set /p variável=um |____funciona____|%variável% Thanks in advance!     
asked by 25.04.2018 / 23:36
0
answers

Certify an executable file so that Windows does not shut it down? [duplicate]

I converted a bat into an executable (.exe), but windows defender does not recognize it and gives as a false positive > Trojan ! Question: Is it possible to certify the executable? Thanks in advance!     
asked by 05.04.2018 / 01:40
1
answer

Batch with parameters in SqlPlus

Hello, I need to create a batch file that drops the user from the database, recreate and import the database with an existing backup. I have already created a routine that gives a drop in user and recreates with the permissions defined, th...
asked by 13.03.2018 / 21:51
2
answers

Bat for network copy only on hosts that ping

Hey, I'm trying to make a script to copy a file from the desktop of the PC to other computers on the network, but I want to copy only the computers that ping, for example, if the pc dribbles it copy, otherwise it skips this host goes to the othe...
asked by 11.03.2018 / 16:13
0
answers

Error running BCP on Azure VM

In a .bat file I have the command BCP inserting records from a CSV file into the SQL database in Azure, and this works perfectly. But when I run this same .bat (with directory settings) file in the Azure VM the...
asked by 27.02.2018 / 14:08
0
answers

Find File and Replace word in XML or TXT

Hello, I have to create a DOS command line script (Windows), which finds one or several .xml files that are located in a certain directory and changes a value of a tag, this tag can be fixed, I will always search for it and change it for a pr...
asked by 29.01.2018 / 18:23
2
answers

How can I continue a BAT in a new profile after rebooting

I've seen many websites teaching how to continue a BAT, but this occurs in the same profile. In my situation I need to be started in another profile, including restarting Windows, a new profile will be created and it is in this profile that I ne...
asked by 25.05.2017 / 14:03
0
answers

Create .exe or .bat to open file as another user

How do I create a file to run a .exe with another user, with user values and password set. Ex: user:max.rogerio and password: 123456 I tried to use run as but every time I start windows it asks for the passw...
asked by 13.03.2017 / 19:30
0
answers

Modify batch HTML code in * .sql file

I have a file in * .sql. I needed to batch convert HTML codes with links like this below: <img src="http://www.sintaema.org.br/site/wp-content/uploads/bomba-456-copy_832-1-pdf-724x1024.jpg"alt="bomba 456 copy_832 1" />' To look like t...
asked by 20.09.2016 / 23:49
1
answer

Insert user and password into bat file

I have a .bat file that automatically copies files from one server to another. We are updating the environment and this server will be modified and when testing .bat I received the following error: Falha de logon: nome de usuário desconhecido...
asked by 10.06.2016 / 13:31