Search found 21 matches

by Dasmius
06 Feb 2023 13:50
Forum: DOS Batch Forum
Topic: Help to break loop
Replies: 4
Views: 14174

Re: Help to break loop

Oh I see!

I'll try it and see what I can do with this.

Thanks Bro :)
by Dasmius
03 Feb 2023 12:59
Forum: DOS Batch Forum
Topic: Help to break loop
Replies: 4
Views: 14174

Re: Help to break loop

For now, I just did this workaround while I don't have any idea how to do it properly: @ECHO OFF MODE CON: COLS=150 LINES=50 CHCP 65001 REM.-- Preparando processador de comandos SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION SET "text1=AO CONFIGURAR O CSO EXTRA" SET "text2=NÃO ALTERE NADA...
by Dasmius
02 Feb 2023 21:45
Forum: DOS Batch Forum
Topic: Help to break loop
Replies: 4
Views: 14174

Help to break loop

Sup Guys, I need a help with my code. I made an Warning Screen where there are some words that blinks and to make this happen I did a loop, But I need when the user hit any key, stop the loop and continue to execute the next commands. I tried a lot of things, like pause >nul , pause /nobreak , some ...
by Dasmius
19 Jan 2023 11:01
Forum: DOS Batch Forum
Topic: Issues with my progress bar
Replies: 3
Views: 10286

Re: Issues with my progress bar

Updating I tried this, but no sucess: @ECHO OFF MODE CON: COLS=150 LINES=50 CHCP 65001 REM.-- Preparando processador de comandos SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION ECHO. ECHO [92mCriando Estruturas de pastas...[0m ::Operations with progress bar ::Operations with progress bar s...
by Dasmius
16 Jan 2023 12:13
Forum: DOS Batch Forum
Topic: Issues with my progress bar
Replies: 3
Views: 10286

Issues with my progress bar

I've implemented an progress bar to my code to each block of comands, but when i starts the next block, the progress bar doesn't reset to 0 and starts to count and fill again even if I set percent=0 CLS ECHO. ECHO [92mBLOCK 1...[0m ::Operations with progress bar set /a max=10 set n=0 for /L %%i in (...
by Dasmius
04 Jan 2023 12:52
Forum: DOS Batch Forum
Topic: Need help with an structure and compare inputs
Replies: 3
Views: 9123

Re: Need help with an structure and compare inputs

Any help with this part of the code? :input echo %currentplayer%'s turn. set /p "choice=Enter a number to place your %turn% on the board: " if not defined board%choice:~-1% goto invalid set "board=%board:%%choice%=%turn%" GOTO checkwin :checkwin if "%board:1=%"=="%board%" goto draw if "%board:2=%"==...
by Dasmius
04 Jan 2023 10:18
Forum: DOS Batch Forum
Topic: Need help with an structure and compare inputs
Replies: 3
Views: 9123

Need help with an structure and compare inputs

Supp guys? I was trying to create an basic tic tac toe in batch, but I'm stuck at the point when user do their moves. When they input the reference number position that thei wanna do, I got an invalid input, can you gays take a look at the code? ======================================== @echo off set...
by Dasmius
25 Nov 2022 07:33
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

Re: Help with characters replacement in a INI file and psexec command

And here is the reply to both posts: @echo off CHCP 65001 SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION :menu CLS ECHO. ECHO. ECHO [104;93m ____________________________________ [0m ECHO [104;93m│ ********************************** │[0m ECHO [104;93m│ SUBMENU - Configuração SRC │[0m ECHO...
by Dasmius
24 Nov 2022 07:23
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

Re: Help with characters replacement in a INI file and psexec command

That's what I'm doing actually :SRC CLS ECHO. ECHO [101;1m SET /P user="Informe o usuário administrativo: " ECHO [0m ECHO. ECHO [101;1m SET /P pass="Digite a senha do usuário administrativo: " ECHO [0m ECHO. ECHO [101;1m SET /P ramal="Digite o Ramal: " ECHO [0m ECHO. ECHO [92mImplementando o SRC e c...
by Dasmius
24 Nov 2022 07:16
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

Re: Help with characters replacement in a INI file and psexec command

That is more like I need @echo off CHCP 65001 SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION :menu CLS ECHO. ECHO. ECHO [104;93m ____________________________________ [0m ECHO [104;93m│ ********************************** │[0m ECHO [104;93m│ SUBMENU - Configuração SRC │[0m ECHO [104;93m│ **...
by Dasmius
24 Nov 2022 07:09
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

Re: Help with characters replacement in a INI file and psexec command

I've tried to change it to get back to my menu config removing goto :EOF and changing it to goto :MENU, but when I do it, the new_ini.ini file turn into a mess, with no data...
by Dasmius
24 Nov 2022 06:55
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

Re: Help with characters replacement in a INI file and psexec command

Worked like a charm.

I still have some code lines before it to run in my batch and need to rename file back to SRC.ini and replace de old one. So can I do it with ren command or need for /f ?
by Dasmius
22 Nov 2022 12:34
Forum: DOS Batch Forum
Topic: Help with characters replacement in a INI file and psexec command
Replies: 14
Views: 9479

SRC.INI That is the .INI file, so I need to be able to replce the to lines "Ramal=xxxxx" whatever the have or not number after "=" cuz actually I'm using this command to replace an previous number after "=" sign powershell -Command "(Get-Content -Path '\\%pc%\c$\patch\NewSrc\SRC.ini') -replace '123...