Search found 63 matches

by Hackoo
03 Aug 2018 05:35
Forum: DOS Batch Forum
Topic: List files modified since set date
Replies: 2
Views: 444

Re: List files modified since set date

You can take a look at this ==> https://stackoverflow.com/questions/9349815/comparing-a-modified-file-date-with-the-current-date-in-a-batch-file Use FORFILES /? from the command line to get documentation on its use. This simple command will list all text files that have been modified today : forfile...
by Hackoo
01 Aug 2018 01:46
Forum: DOS Batch Forum
Topic: Reading a hidden password via a FINDSTR bug
Replies: 10
Views: 1660

Re: Reading a hidden password via a FINDSTR bug

A beautiful find ! :wink: works on my windows 10 too :lol: @echo off Title Multi-Lines Comments and Reading a hidden password via a FINDSTR bug rem.||( Today on 01/08/2018 ; I learned two nice codes : This is a multiline comments from here ==> https://www.dostips.com/forum/viewtopic.php?p=57621#p576...
by Hackoo
31 Jul 2018 10:14
Forum: DOS Batch Forum
Topic: [BAT] Get-FileHash (MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512)
Replies: 4
Views: 689

Re: [BAT] Get-FileHash (MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512)

i wonder if is it possible to add a function in the same batch file that can check if this script exists on the right context menu Depends what context menu item you're talking about. Could be an item in the Send To which means that it is a link in the SenTo folder. Or it's a registry setting (see ...
by Hackoo
31 Jul 2018 03:59
Forum: DOS Batch Forum
Topic: [BAT] Get-FileHash (MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512)
Replies: 4
Views: 689

[BAT] Get-FileHash (MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512)

Hi :wink: This script can get all the Hashes (MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512) with Certutil.exe command from a file by drag and drop on this batch script and save the results in a text file. @echo off Color 0A & Mode 136,10 Title GET ( MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512 ) HASHE...
by Hackoo
27 Jul 2018 12:19
Forum: DOS Batch Forum
Topic: How to check (with "tasklist" built-in cmd) if prgm is running?
Replies: 9
Views: 1526

Re: How to check (with "tasklist" built-in cmd) if prgm is running?

The user on SO might be happy with any kind of "piece of code". You can easily do everything in VBS. Just use a WMI query to terminate all instances of iexplore.exe if the URL was found. Steffen I did like this ! @echo off Title Checking Running Process and Get their command lines setlocal enablede...
by Hackoo
27 Jul 2018 10:07
Forum: DOS Batch Forum
Topic: How to check (with "tasklist" built-in cmd) if prgm is running?
Replies: 9
Views: 1526

Re: How to check (with "tasklist" built-in cmd) if prgm is running?

I'm not a member on SO, Hackoo. Are you familiar with JScript hybrids? This is a proof of concept how to enumerate the URLs of the InternetExplorer tabs. @if (0)==(0) echo off for /f "delims=" %%i in ('cscript //nologo //e:jscript %~fs0') do ( echo %%i ) pause goto :eof @end try { var colShWindows ...
by Hackoo
22 Feb 2018 14:23
Forum: DOS Batch Forum
Topic: Script to audit hardware and software
Replies: 3
Views: 1284

Re: Script to audit hardware and software

You can add this command in one line with powershell : @echo off Powershell /command "Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-List" Pause And to use it on your main batch file : @echo of...
by Hackoo
14 Feb 2018 14:32
Forum: DOS Batch Forum
Topic: How to replace space in file names
Replies: 3
Views: 1061

Re: How to replace space in file names

How do SETLOCAL and ENABLEDELAYEDEXPANSION work?

Code: Select all

@echo off
Set "Pattern= "
Set "Replace=_"
Setlocal EnableDelayedExpansion
For /f "delims=" %%a in ('dir /b /s "*.txt"') Do (
Set "File=%%~nxa"
echo Ren "%%a" "!File:%Pattern%=%Replace%!"
)
pause
by Hackoo
11 Feb 2018 15:40
Forum: DOS Batch Forum
Topic: How to make cmd and batch script display correctly arabic characters?
Replies: 6
Views: 2239

Re: How to make cmd and batch script display correctly arabic characters?

Thank you both of you (penpen and aGerman) for your assistance and your help :wink:
by Hackoo
10 Feb 2018 16:34
Forum: DOS Batch Forum
Topic: How to make cmd and batch script display correctly arabic characters?
Replies: 6
Views: 2239

Re: How to make cmd and batch script display correctly arabic characters?

INFO.BAT version 1.4 -------------------------------------------------------------------------------- Windows version : Microsoft Windows [version 10.0.16299.125] Product name : Windows 10 Pro, 32 bit Performance indicators : Processor Cores: 4 Visible RAM: 2705772 kilobytes Date/Time format : (dd/...
by Hackoo
10 Feb 2018 12:04
Forum: DOS Batch Forum
Topic: Create a shortcut via batch file
Replies: 2
Views: 847

Re: Create a shortcut via batch file

Just take a look at this https://stackoverflow.com/questions/30028709/how-do-i-create-a-shortcut-via-command-line-in-windows I just modify a little to create a shortcut on the startup folder instead on the desktop like in the example above @echo off Title Shortcut Creator for your batch and applicat...
by Hackoo
10 Feb 2018 10:27
Forum: DOS Batch Forum
Topic: How to make cmd and batch script display correctly arabic characters?
Replies: 6
Views: 2239

How to make cmd and batch script display correctly arabic characters?

I have tried this code to show some strings in arabic, but the charachters are shown as : â?â?ل?â? @echo off setlocal enableExtensions enableDelayedExpansion set "cp=" for /F "tokens=2 delims=:." %%a in ('chcp') do set "cp=%%~a" if not defined cp set "cp=850" >nul chcp 1256 set "quarterNote=مهدي" >n...