Questions tagged as 'script'

1
answer

Bat renames files from different directory

I have the following script that works if I run it from the same directory: @echo off for %%i in (*.csv) do (set fname=%%~ni) & call :renameFile goto :eof :renameFile ren "%fname%.csv" "%fname:~13,16%.csv" goto :eof What I intend is to...
asked by 31.10.2017 / 09:08
1
answer

How to automate the file name in bat file

The following code opens a db file (sqlite language) and exports the resulting query to a file on my desktop. Up here all good. What I want is for the file name to be different every time the batch is executed. sqlite3 -cmd ".headers on" -cmd...
asked by 30.08.2018 / 17:43
1
answer

Script for Windows that distinguishes by IP

I need your help because I'm going crazy to create a script that when you log in runs in all the posts in the domain and you modify the name of the Organization in Windows based on the IP address of the PC. The problem I have to get it if the IP...
asked by 26.03.2018 / 09:00
1
answer

Operate with powers of decimals in shell

I'm trying to make a shell script that takes numeric data that are usually decimal of type 0.00004 and I have to square them. Using "bc" the result I get 0. Example: echo "(0.0000003+0.0000005)^2"|bc 0 Looking at the help of bc, he says...
asked by 06.04.2018 / 22:57
2
answers

Pass 2 or more varibles by method get

                                                  State                                                       State                                        <div class="form-group row"> <div class="col-5"> <...
asked by 17.01.2018 / 19:43
3
answers

Every time I give a button an element with a different id is created

In summary I have a function that is as follows: function datos3(){ resp=$("#ref_mi").val(); if(resp != "" && resp !=null &&typeof resp != undefined){ jqmSimpleMessage('Agrega cotizacion: '+resp); $...
asked by 22.08.2018 / 20:06
1
answer

What is [:: - 1] in Python?

I would like to know in the following code: import sys if len(sys.argv) == 2: numero = sys.argv[1][::-1] longitud = len(numero) for i in range(longitud): print('{:0{}d}'.format(int(numero[i]) * 10 ** i, longitud)) e...
asked by 28.11.2018 / 17:41
1
answer

Error filling an input in powershell with ie?

It seems that the data of the page does not arrive to me, this one opens to me, but it says to me that the value is null. I've tried with id and neither, I'm in version 5.1 of power shell. This is the code: clear-host $ie = n...
asked by 10.04.2018 / 20:53
1
answer

Bring php variable in an xmlhttp function

I am working with html, php, javascript, postgres. I have a form that contains a combo, a button and a panel. The operation of the form basically is: choose a type of animal, press the filter button and the panel displays a table with the...
asked by 13.03.2018 / 19:09
2
answers

How can I add a counter to my script

I'm working on a script that gets information from a log called ip.txt and contains the following: 192.168.7.x OK 192.168.9.x OK 192.168.5.x OK Looking for help, I managed to make it print a status depending on the file if all the IPs have...
asked by 04.01.2019 / 02:55