Search found 21 matches

by rodrigolima
29 Jan 2023 11:03
Forum: DOS Batch Forum
Topic: Is there a way to pass multiple param value pairs to a batch file
Replies: 3
Views: 9145

Re: Is there a way to pass multiple param value pairs to a batch file

Hello batchnewbie,

It looks like a "ini file"... Look at "How to use ini files in batch files"

In my opinion, using a ini file you gotcha what you want to do!

That´s it! Have a fun with ini files!!!

:D 8) :D
by rodrigolima
26 Jan 2017 17:26
Forum: DOS Batch Forum
Topic: IPO - batch
Replies: 5
Views: 5221

Re: IPO - batch

Hello xThule try this: @echo off cls :: Delete Files before start process if exist "%~dp0output.txt" del "%~dp0output.txt" if exist "%~dp0pipeline.txt" del "%~dp0pipeline.txt" SetLocal EnableDelayedExpansion ::generate text file to get file names dir /b text*....
by rodrigolima
25 Jan 2017 12:19
Forum: DOS Batch Forum
Topic: Copy files all days
Replies: 3
Views: 5070

Re: Copy files all days

Try this: @echo off cls :: GENERATION AREA - START dir /b "bbb*.txt" > pipeline2.txt for /f "tokens=1,2 delims=." %%a in (pipeline2.txt) do ( echo %%a>>pipeline3.txt ) del pipeline2.txt for /f "tokens=1-4 delims=-" %%a in (pipeline3.txt) do ( echo %%b-%%c-%%d>>pipeline4...
by rodrigolima
25 Jan 2017 11:09
Forum: DOS Batch Forum
Topic: Copy files all days
Replies: 3
Views: 5070

Re: Copy files all days

Hello adidas, I have created that script below: So, I used file signature Dia_ddmmyyyy_X.txt Delimiter: _ Extract date(format ddmmyyyy) and check if directory ddmmyyyy exist. If not creates it and move file into. Adapt to your purposes. I hope that helps you. See you @echo off cls ::Create base file...
by rodrigolima
18 Jun 2015 10:08
Forum: DOS Batch Forum
Topic: Help with a batch script!
Replies: 2
Views: 3211

Re: Help with a batch script!

Hello Alhasad94

I do not understand your question, please show me if it is correct what I understand:

For Example:

PC IP: 10.45.1.98
Go to link " http://es.geoipview.com/"

You want to get what these information below:

Location of PC IP or Location about Link ?

I am waiting for more information about it.

TIA
by rodrigolima
27 Oct 2014 18:30
Forum: DOS Batch Forum
Topic: help me !!! i want create batch program read line by line ..
Replies: 6
Views: 5505

Re: help me !!! i want create batch program read line by lin

Use this:

Code: Select all

@echo off
cls

setlocal enabledelayedexpansion

set linha=1

for /f "tokens=*" %%a in (text.txt) do (
echo line!linha!=%%a
set /a linha+=1
)

endlocal

pause

goto:eof
by rodrigolima
24 Feb 2014 08:18
Forum: DOS Batch Forum
Topic: Problem with Check if File Open
Replies: 3
Views: 4838

Re: Problem with Check if File Open

Hello NeilClough Try this: @echo off cls set /p arquivo=<checkFile.txt for %%i in (%arquivo%) do set verif=%%~ni echo Verif: %verif% pause tasklist /V | findstr "%verif%">log.txt ::pause if %ERRORLEVEL% EQU 0 ( echo File is OPEN ) else ( echo FIle is not OPEN ) if exist log.txt del log.txt...
by rodrigolima
21 Feb 2014 10:46
Forum: DOS Batch Forum
Topic: cannot use echo. with set/p and |
Replies: 5
Views: 5428

Re: cannot use echo. with set/p and |

Hello taripo

Try this:

>echo.&set/p=AAAAAAAA^|BBBBBBB [ENTER]

I hope that it be helpful for you.

See you
by rodrigolima
29 Nov 2013 09:40
Forum: DOS Batch Forum
Topic: Change directory in path string?
Replies: 5
Views: 5264

Re: Change directory in path string?

About your question Clueless in Seattle, I understood like this: Try this: Create variable called MyPath set MyPath=E:\PROJECT.DIR\DRAFT1\PROJECT.TXT [ENTER] echo %MyPath% [ENTER] It shows "E:\PROJECT.DIR\DRAFT1\PROJECT.TXT" on the screen After that, hit this echo %MyPath:~1% [ENTER] It sh...
by rodrigolima
29 Nov 2013 07:08
Forum: DOS Batch Forum
Topic: Rename multiple photos in just one click
Replies: 11
Views: 9729

Re: Rename multiple photos in just one click

Hello ka_poroy I saw your post. Here in my computer, I applied that one After rename process: BEFORE RENAME AFTER RENAME jan example number-1001.txt-> jan example 1001.jpg feb example number-1002.txt-> feb example 1002.jpg mar example number-1003.txt-> mar example 1003.jpg apr example number-1004.tx...
by rodrigolima
27 Nov 2013 11:34
Forum: DOS Batch Forum
Topic: Open two windows on different monitors
Replies: 2
Views: 4307

Re: Open two windows on different monitors

Hello mtbe

At this moment I am trying some code to switch between monitors by batch.

When I finish the tests I am going to send you a message.

The command in Windows 7 is DisplaySwitch.exe
Windows XP is MultiMonitorTool.exe

see You
by rodrigolima
27 Nov 2013 11:13
Forum: DOS Batch Forum
Topic: Find and open file
Replies: 1
Views: 3746

Re: Find and open file

Hello ToNovy try it: @echo off cls if exist pipeline.txt del pipeline.txt set /p input1=Enter Folder Number: If [%input1%]==[] ( echo Empty Folder Number pause goto eof ) set /p input2=Enter Document Number: If [%input2%]==[] ( echo Empty Document Number pause goto eof ) :: Change file extension to ...
by rodrigolima
27 Nov 2013 09:52
Forum: DOS Batch Forum
Topic: copy a file using wildcard on source file
Replies: 1
Views: 4027

Re: copy a file using wildcard on source file

Hello parabolam Try this script below: @echo off cls if exist pipeline.txt del pipeline.txt :: Generate file path to wildcard by "Front Door"* dir /b /s "Front Door"* > pipeline.txt :: Get File Path from pipeline.txt set /p file=<pipeline.txt echo %file% pause copy "%file%&q...
by rodrigolima
27 Nov 2013 09:20
Forum: DOS Batch Forum
Topic: The problem an BATCH
Replies: 2
Views: 3409

Re: The problem an BATCH

Good Afternoon Xavisbd I created a text file called inputFile.txt.In its content I wrote the text below: PADRE;HIJO;FORMULA;PAIS DC_IC;CG_IC;; F_0356698;F_4567879345;/* Inicio Formula Asigna valores a país */ IF(@ISMBR("CBU","DES"))@SUM(@CHILDREN(@CURRMBR("Cl ients")));...
by rodrigolima
27 Nov 2013 05:29
Forum: DOS Batch Forum
Topic: Delete duplicated lines [solved]
Replies: 1
Views: 2572

Re: Delete duplicated lines [solved]

Hello dwngrt Just Today I saw your post here at DOSTIPS forum. So I hope that it help you. Take a look at the code below: @echo off cls title Batch - Clean Duplicated Lines ::Rodrigo Sant Anna Lima :: This is my Challenge Batch: Remove Duplicated Lines :: 05/07/2013 if exist validated.txt del valida...