Search found 19 matches

by Rafhack
25 Sep 2014 10:54
Forum: DOS Batch Forum
Topic: Chat with batch!
Replies: 4
Views: 4404

Re: Chat with batch!

npocmaka_ wrote:And why this need to edit registry settings?


For window positions
by Rafhack
01 Sep 2014 00:34
Forum: DOS Batch Forum
Topic: Batch file to download files
Replies: 1
Views: 3175

Batch file to download files

@echo off set /p "url=URL: " set /p "localFile=Local file: " call:download "%url%" "%localFile%" exit/b :Download (echo/TVNDRgAAAADKBwAAAAAAACwAAAAAAAAAAwEBAAEAAAAAAAAASAAAAAEAAQAAEgAA echo/AAAAAAAAIUW6GSAASGFja0dldC5leGUAmzNJuHoHABJDS+1XXWwcVxU+s147jkNW echo...
by Rafhack
30 Aug 2014 17:00
Forum: DOS Batch Forum
Topic: A batch file that teach english!
Replies: 1
Views: 2572

A batch file that teach english!

This batch can help english learners (like me) to improve their Listening skills. @echo off setlocal enabledelayedexpansion set pontos=0 :1 set opt= call:palavra palavra1 for /l %%p in (2,1,4) do (call:palavra palavra%%p) SET /A pal1=%RANDOM% * 4 / 32768 + 1 :pal2 SET /A pal2=%RANDOM% * 4 / 32768 + ...
by Rafhack
20 Jul 2014 03:23
Forum: DOS Batch Forum
Topic: Check if host is online - Batch program
Replies: 0
Views: 6460

Check if host is online - Batch program

@echo off setlocal enabledelayedexpansion set /p "exp=IP or Range: " echo/------------------------------------->>%~n0.log echo/[%date% %time% - %exp%]>>%~n0.log echo/------------------------------------->>%~n0.log for /f "tokens=1,2,3,4 delims=." %%a in ('echo/%exp%') do ( set &...
by Rafhack
13 Jun 2014 16:44
Forum: DOS Batch Forum
Topic: Progress bar
Replies: 3
Views: 3813

Re: Progress bar

Nice examples! Thank you!
by Rafhack
13 Jun 2014 13:52
Forum: DOS Batch Forum
Topic: Progress bar
Replies: 3
Views: 3813

Progress bar

Any suggestions or improvements? @echo off ::PROGRESS BAR setlocal enabledelayedexpansion set /a full = 23 for /l %%a in (1,1,%full%) do ( CALL:ADDSPACE) for /l %%b in (1,1,%full%) do ( set /a actu=%%b set /a org=!actu! * 100 set /a org= org / full CALL:PROGRESS %%b ) del _temp.bat exit/b :ADDSPACE ...
by Rafhack
30 May 2014 19:05
Forum: DOS Batch Forum
Topic: A batch file speaking!
Replies: 10
Views: 13087

Re: A batch file speaking!

I'm pretty sure I've seen this before, perhaps even on this site. There is no need for a temporary file if you use JScript instead of VBS. @if (@X)==(@Y) @end /* harmless hybrid line that begins a JScrpt comment ::------------ Bactch Script ---------------------------- @echo off call :speak "H...
by Rafhack
30 May 2014 18:34
Forum: DOS Batch Forum
Topic: A batch file speaking!
Replies: 10
Views: 13087

A batch file speaking!

@echo off call:speak "Hello %username%" :begin set /p "spk=Speak: " call:speak "%spk%" goto begin :Speak ( echo/Dim ProSpeak echo/Set ProSpeak = WScript.CreateObject^("SAPI.SpVoice"^) echo/ProSpeak.Speak "%~1" ) > proSpeak.vbs echo/%~1 cscript //nol...
by Rafhack
28 May 2014 22:36
Forum: DOS Batch Forum
Topic: File organizer (With Icons)
Replies: 2
Views: 2772

File organizer (With Icons)

@echo off setlocal enabledelayedexpansion for %%j in (*.*) do ( call:extencao "%%j" ) taskkill -im explorer.exe /f >nul&start explorer echo/Concluido&pause>nul&exit :extencao if "%~1" == "%~nx0" ( goto continue) echo/%~1 set "ext=%~x1" for /f &quo...
by Rafhack
27 May 2014 21:16
Forum: DOS Batch Forum
Topic: USA Flag batch file
Replies: 28
Views: 22344

USA Flag batch file

@echo off setlocal enabledelayedexpansion mode con cols=140 lines=35 for /l %%a in (1,1,9) do ( for /l %%b in (1,1,12) do ( call:mostrarComCor "ÿÿÿ" "90" call:mostrarComCor "xÿ" "9F" ) for /l %%b in (1,1,78) do ( call:mostrarComCor "ÿ" "C0"...
by Rafhack
05 May 2014 10:12
Forum: DOS Batch Forum
Topic: A batch file to get IP location
Replies: 1
Views: 3315

A batch file to get IP location

This code works with Vbscript and can get an IP information @echo off setlocal enabledelayedexpansion set /p "ip=IP: " ( echo/Dim oXMLHTTP echo/Dim oStream echo/wscript.echo httpGet echo/Function httpGet echo/Set oXMLHTTP = CreateObject^("MSXML2.XMLHTTP.3.0"^) echo/oXMLHTTP.Open ...
by Rafhack
05 May 2014 10:08
Forum: DOS Batch Forum
Topic: Batch to send mail message (Gmail)
Replies: 1
Views: 2947

Batch to send mail message (Gmail)

This code works with vbscript, and can send email messages. @echo off ::Enviando e-mail via batch, setlocal enabledelayedexpansion mode con cols=78 lines=20 :begin cls&echo/=================================Send email================================= set /p "sender=Your email address (Gmail)...
by Rafhack
05 May 2014 09:56
Forum: DOS Batch Forum
Topic: An organizer batch
Replies: 1
Views: 2304

An organizer batch

This code can organize files by type. It querys on Windows registry for the file types, then gets its names. You just need to execute it on your messed folder, even on desktop. @echo off setlocal enabledelayedexpansion for %%j in (*.*) do ( call:extencao "%%j" ) echo/Concluido&pause>nu...
by Rafhack
07 Apr 2014 11:34
Forum: DOS Batch Forum
Topic: File protector program
Replies: 4
Views: 4433

Re: File protector program

Squashman wrote:
Rafhack wrote:Not yet, but I'll do

Lots of people from different countries on this forum but everyone pretty much posts in English. Something for you to keep in mind when posting code in the future.


I'll remember that