Questions tagged as 'batch'

2
answers

Store various information in a batch notebook

Good morning, I'll contextualize first. Basically I'm doing an "interactive story", where basically, during the progress of the story I'll have 3 variables. I could save these variables with the set command within programming and it would work,...
asked by 14.11.2018 / 12:03
1
answer

Delete file with name and path in another .bat file

I need to develop a batch that has to read the data in a .txt file, and according to the path and filename I have in txt the batch has to go to the folder and delete files. The data I have in this file is the result of an sql query. To exempl...
asked by 09.11.2018 / 00:12
1
answer

Automate connection in putty through 2fa (batch)

I wanted to know how to automate the connection on Putty using a batch. The script for in 2fa, using the password parameter as code 2fa. There is no point in duplicating the parameter. cmd line to connect: start putty -ssh usuario@ipdama...
asked by 23.10.2018 / 20:59
1
answer

Run python code through batch in anaconda cmd

I have a batch created to run a python file, but it is opening the windows cmd and how python is installed in anaconda, it does not work, would it have to run directly from the anaconda cmd as an administrator?    start Python c: \ scrapy \ c...
asked by 01.11.2018 / 21:43
0
answers

Execute remote CMD commands in python (PSEXEC)

Here is a test where you get the error: import subprocess ip = '192.168.15.5' ipDest = '\\' +ip subprocess.Popen(['psexec', '/s', ipDest, 'cmd'], shell = True) Error presenting:    'psexec' is not recognized as an internal command   or...
asked by 19.09.2018 / 02:46
2
answers

batch files - find directory of the current file

I have a batch file that causes the cmd to point to another directory. But at some point, I need it to go back to the batch file's own directory. Is it possible to do this?     
asked by 28.08.2018 / 14:48
0
answers

Batch File: Access Denied When Removing Permissions

Hello. I'm trying to remove my user's permission to access the "Recent" folder on my computer, but the code returns an "access denied" message. I already ran as administrator and it did not solve, could you help me? Code: cacls %userpro...
asked by 17.08.2018 / 01:46
1
answer

Error running .sql via .bat

The query runs fine sqldeveloper but when calling via .bat does not recognize commands like ( case, nvl,sum ) Has anyone gone through this?   'C: \ oracle \ app \ oracle \ product \ 11.2.0 \ server \ bin \ sqlplus.EXE @C: \ V1.sql'...
asked by 03.07.2018 / 22:20
0
answers

Download files directly in CMD

After much searching, I found a way to do direct downloads through CMD, without the need to open an external program, however, I wanted to put a progress bar, or at least display the speed of the file download. I added a progress bar just for...
asked by 29.05.2018 / 19:24
2
answers

Problem with batch "set" command

Good afternoon. I was doing a very simple programming, in general, simply serves to put the numbers that the user put (10 numbers) in ascending order, however something strange happens already in that part set /p NM9= set /p NM10= :CICLO if %...
asked by 08.05.2018 / 22:18