Search found 103 matches
- 09 Feb 2023 13:00
- Forum: DOS Batch Forum
- Topic: Batch script to pass all files in directory and execute the vbs script
- Replies: 3
- Views: 4000
Re: Batch script to pass all files in directory and execute the vbs script
And the source code of send.vbs where is it ?
- 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: 4000
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
Please try to format your code and explain more your aim
- 09 Feb 2023 10:34
- Forum: DOS Batch Forum
- Topic: get File Size batch script.
- Replies: 4
- Views: 24056
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...
- 04 Jan 2023 17:59
- Forum: DOS Batch Forum
- Topic: HTA GUI build
- Replies: 5
- Views: 27573
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...
- 24 Dec 2022 13:12
- Forum: DOS Batch Forum
- Topic: Hybrid Code with SpeedTest CLI by Ookla
- Replies: 0
- Views: 44014
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...
- 26 Nov 2022 00:47
- Forum: DOS Batch Forum
- Topic: findstr default gateway
- Replies: 6
- Views: 6658
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...
- 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: 3855
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...
- 27 Jan 2022 00:07
- Forum: DOS Batch Forum
- Topic: The fastest way to detect internal IP address
- Replies: 8
- Views: 11372
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...
- 15 Oct 2021 15:11
- Forum: DOS Batch Forum
- Topic: find file in drive then get its path
- Replies: 3
- Views: 5913
Re: find file in drive then get its path
Hi
Take a look at this thread that can give you an idea for making your own code in the futur !
Batch Antivirus
Take a look at this thread that can give you an idea for making your own code in the futur !
Batch Antivirus
- 11 Oct 2021 05:52
- Forum: DOS Batch Forum
- Topic: Batch files only opens some files
- Replies: 2
- Views: 5432
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 ..
....
....
- 10 Oct 2021 08:41
- Forum: DOS Batch Forum
- Topic: Output the results of two commands in parallel
- Replies: 4
- Views: 6532
Re: Output the results of two commands in parallel
Hi
Perhaps you mean that you want to make something like this code : Multi-Threaded_Network_IP_Ports_Scanner.bat
Perhaps you mean that you want to make something like this code : Multi-Threaded_Network_IP_Ports_Scanner.bat
- 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: 4896
[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 ...
- 01 Jun 2021 10:44
- Forum: DOS Batch Forum
- Topic: Animated screen in Batch
- Replies: 4
- Views: 5463
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+`...
- 27 Apr 2021 06:14
- Forum: DOS Batch Forum
- Topic: Taskkill %0
- Replies: 6
- Views: 7069
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%%'...
- 24 Apr 2021 03:39
- Forum: DOS Batch Forum
- Topic: Start batch files at startup...
- Replies: 2
- Views: 4608
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...