Search found 103 matches

by Hackoo
09 Feb 2023 10:39
Forum: DOS Batch Forum
Topic: Batch script to pass all files in directory and execute the vbs script
Replies: 3
Views: 1837

Re: Batch script to pass all files in directory and execute the vbs script

Where is the vbscript code ? I saw a Powershell script ?
Please try to format your code and explain more your aim
by Hackoo
09 Feb 2023 10:34
Forum: DOS Batch Forum
Topic: get File Size batch script.
Replies: 4
Views: 19794

Re: get File Size batch script.

@xiro Give a try for this modification and tell me the results : You should replace the path of File1 and File2 in your case : @echo off Title Get size of file or folder from a batch file Set "LogFile=%~dp0SizeLog.txt" If Exist "%LogFile%" Del "%LogFile%" Set "FileExplorer=%Windir%\Explorer.exe" Set...
by Hackoo
04 Jan 2023 17:59
Forum: DOS Batch Forum
Topic: HTA GUI build
Replies: 5
Views: 22192

Re: HTA GUI build

This source can help you too to build your own HTA : Computer Information - HTA https://content.spiceworksstatic.com/service.community/p/script_images/0000001999/528e3aaf/attached_image/CIT2.jpg https://content.spiceworksstatic.com/service.community/p/script_images/0000002001/528e3ac8/attached_image...
by Hackoo
24 Dec 2022 13:12
Forum: DOS Batch Forum
Topic: Hybrid Code with SpeedTest CLI by Ookla
Replies: 0
Views: 30901

Hybrid Code with SpeedTest CLI by Ookla

Hi :wink: SpeedTest_Hackoo_Ookla.bat I want to share with you this beta version of SpeedTest CLI with Hybrid code Batch-Powershell for testing and optimize it for any bugs. <# : Batch Script Section @rem # The previous line does nothing in Batch, but begins a multiline comment block in PowerShell. T...
by Hackoo
26 Nov 2022 00:47
Forum: DOS Batch Forum
Topic: findstr default gateway
Replies: 6
Views: 3613

Re: findstr default gateway

You can create a batch file in order to get the Default Gateway and the Local IP Address from netstat command :wink: @echo off Title Get Default Gateway and Local IP Address from netstat command @for /f "tokens=3,4 delims= " %%a in ('netstat -rn ^| findstr "\<0.0.0.0"') do ( Set "Gateway=%%a" Set "M...
by Hackoo
14 Sep 2022 02:00
Forum: DOS Batch Forum
Topic: Get Funky ASCII ART with Colors and Playing music in the background for introduction animation
Replies: 3
Views: 2391

Get Funky ASCII ART with Colors and Playing music in the background for introduction animation

I made this Hybrid Script [Batch/Powershell] with the help from other sources on the Net that can make some animation introduction with ASCII ART with Colors, but some users who test it on their computer say to me that the music doesn't play ?? I don't know why, perhpas security issues ? My OS is Wi...
by Hackoo
27 Jan 2022 00:07
Forum: DOS Batch Forum
Topic: The fastest way to detect internal IP address
Replies: 8
Views: 7007

Re: The fastest way to detect internal IP address

Hi :wink: You can try this code : @echo off Title Get LocalIP and WANIP Call :GET_LocalIP echo( & echo LocalIP : %LocalIP% pause Call :GET_WANIP echo( & echo LocalIP : %WANIP% Pause & exit ::----------------------------------------------------------------------------------- :GET_LocalIP <LocalIP> Se...
by Hackoo
15 Oct 2021 15:11
Forum: DOS Batch Forum
Topic: find file in drive then get its path
Replies: 3
Views: 4629

Re: find file in drive then get its path

Hi :wink:
Take a look at this thread that can give you an idea for making your own code in the futur !
Batch Antivirus
by Hackoo
11 Oct 2021 05:52
Forum: DOS Batch Forum
Topic: Batch files only opens some files
Replies: 2
Views: 4097

Re: Batch files only opens some files

Try to change code page in the begining of your batch script in order to read correctly unicode chars :

Code: Select all

@echo off
CHCP 65001>NUL
the rest of your code goes here ..
....
....
by Hackoo
10 Oct 2021 08:41
Forum: DOS Batch Forum
Topic: Output the results of two commands in parallel
Replies: 4
Views: 4960

Re: Output the results of two commands in parallel

Hi :wink:
Perhaps you mean that you want to make something like this code : Multi-Threaded_Network_IP_Ports_Scanner.bat
by Hackoo
08 Jun 2021 02:50
Forum: DOS Batch Forum
Topic: [Solved] How to delete a file with zero byte created accidentally with name "Call" on Windows ?
Replies: 2
Views: 3414

[Solved] How to delete a file with zero byte created accidentally with name "Call" on Windows ?

How to delete a file with zero byte created accidentally with name "Call" ? I'm facing with this issue that i couldn't figure it out until now ? I tried with command Del but no chance. @echo off set "targetdir=C:\FolderDir" for /f "delims=" %%a in ('dir/s/b/a-d "%targetdir%\*.*"') do ( if %%~Za equ ...
by Hackoo
01 Jun 2021 10:44
Forum: DOS Batch Forum
Topic: Animated screen in Batch
Replies: 4
Views: 3848

Re: Animated screen in Batch

Hi ;) I think you should add a counter and increment it and stop the loop when you want ! Here is an example how to use a counter inside your animation loop @echo off & color 0A & Mode 85,39 Title Animation set /a cnt=0 :Anim cls echo( echo `sss+- `:/:` echo `. :sssss+` .sssss+. echo oss/` /ssssss+`...
by Hackoo
27 Apr 2021 06:14
Forum: DOS Batch Forum
Topic: Taskkill %0
Replies: 6
Views: 4882

Re: Taskkill %0

Hi :wink: You can also use the WMIC to "kill your self" oh no :D :lol: I mean killing your batch file :lol: @echo off Title BATCH SELF KILLING :MAIN CLS Set "ME=%~0" Set "ME=%ME:\=\\%" REM Just To show what can be the result wmic PROCESS where "CommandLine Like '%%%ME%%%' And Name Like '%%cmd.exe%%'...
by Hackoo
24 Apr 2021 03:39
Forum: DOS Batch Forum
Topic: Start batch files at startup...
Replies: 2
Views: 3265

Re: Start batch files at startup...

Hi :) Just give a try for this batch file : @echo off Title Create a shortcut on Startup Folder of my batch file using Powershell ::-----------------------Calling our Sub-Routine Create_Shortcut_Startup ------------------------------- Call :Create_Shortcut_Startup ::-------------------------------Be...