Search found 29 matches

by Lucky4Me
03 May 2025 11:11
Forum: DOS Batch Forum
Topic: …and we’re back!
Replies: 3
Views: 115

Re: …and we’re back!

I kept getting the message that their certificate had expired on 30/03/2025 and that it needed to be updated!
As long that it wasn't updated, the site wasn't reliable for sending confidential information and became blocked by most of the browsers.
by Lucky4Me
02 Feb 2025 05:05
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4445

Re: [SOLVED] Batch Script ignores folders with spaces

This is another version of the "include Files" and the files will be in alphabetical order. I also adapted some of the info that goes into the log file, if you don't want it you can remove it from the batch. I shows you the filename that's being processed and at the end the total of processed files....
by Lucky4Me
29 Jan 2025 17:18
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4445

Re: [SOLVED] Batch Script ignores folders with spaces

You can also use the following code @echo off setlocal EnableDelayedExpansion set "IFN=I:\Test\Paul\Paul No Way\*.*" set "excludefiles=\.mp4$ \.jpg$ \.png$" set "OFN=COPIED_to_SINGLE_FILE.log" if exist %OFN% (del /f /q %OFN% >nul 2>&1) echo %IFN% &:: This shows the path with a space in it correcctly...
by Lucky4Me
29 Jan 2025 16:30
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4445

Re: [SOLVED] Batch Script ignores folders with spaces

You can try this @echo off setlocal EnableDelayedExpansion set "IFN=I:\Test\Paul\Paul No Way\" set "files=*.txt *.log *.json" set "OFN=COPIED_to_SINGLE_FILE.log" if exist %OFN% (del /f /q %OFN% >nul 2>&1) echo %IFN% &:: This shows the path with a space in it correcctly ! set /a Counter=0 for /r "%IF...
by Lucky4Me
28 Jan 2025 12:49
Forum: DOS Batch Forum
Topic: [SOLVED] Batch Script ignores folders with spaces
Replies: 8
Views: 4445

Re: Batch Script ignores folders with spaces

Use (type "%IFN%") and type "%%f"
by Lucky4Me
22 Oct 2024 08:47
Forum: DOS Batch Forum
Topic: Why here echo double times?
Replies: 4
Views: 107491

Re: Why here echo double times?

put an exit /b or goto :eof between the for /f and :ManualRepl for /f "tokens=1-12 delims=," %%A in (C:\CATA_AUTO\ata-master\BVT\BVTTAG\FAPS\%TC_ID%.txt) do call :ManualRepl %%A %%B %%C %%D %%E %%F %%G %%H %%I %%J %%K %%L exit /b :ManualRepl for /f "tokens=1-12 delims=," %%A in (C:\CATA_AUTO\ata-mas...
by Lucky4Me
03 Oct 2024 08:25
Forum: DOS Batch Forum
Topic: how do i display empty lines with maybe DELIMS and TOKENS for TYPE command?
Replies: 7
Views: 26388

Re: how do i display empty lines with maybe DELIMS and TOKENS for TYPE command?

This is your f9.txt

Code: Select all

1
2
3

5

7
8
change the empty lines with the ALT+08 char (BackSpace) and run

For /f "tokens=*" %%a in ('type %k1%') do echo.%%a
by Lucky4Me
29 Aug 2024 08:34
Forum: DOS Batch Forum
Topic: Mass Batch help please
Replies: 2
Views: 37216

Re: Mass Batch help please

@echo off & setlocal enableDelayedExpansion cls & color 0B mode con cols=120 lines=6 cd /d "%~dp0" set "xMkvMerge=C:\Program Files\MKVToolNix\mkvmerge.exe" set "xFFmpeg=C:\ffmpeg\bin\ffmpeg.exe" for %%a in (*.mp4) do ( cls&echo.&echo.&echo Analyzing... %%a "%xFFmpeg%" -i "%%a" -filter_complex "[0:a...
by Lucky4Me
05 Jul 2024 07:29
Forum: DOS Batch Forum
Topic: is there a way to use ECHO <esc>[32;40m without adding an extra line?
Replies: 4
Views: 33407

Re: is there a way to use ECHO <esc>[32;40m without adding an extra line?

one goes with" Press any other key to CONTINUE"
the other goes "Press any other key to QUIT"
Maybe you can adjust your txt to

Code: Select all

echo Press any other key to [32mCONTINUE[0m
Then CONTINUE will be green and the rest will have the default color.
by Lucky4Me
05 Jul 2024 03:39
Forum: DOS Batch Forum
Topic: is there a way to use ECHO <esc>[32;40m without adding an extra line?
Replies: 4
Views: 33407

Re: is there a way to use ECHO <esc>[32;40m without adding an extra line?

You can try the following? @echo off cls call :necho "[32m" "==================" call :necho "[36m" "Quake 4 - selector" call :necho "[32m" "==================" exit /b :necho set "txt=%~1%~2[0m" echo %txt% exit /b Make sure that the color and the txt is between "", then the color becomes %~1 and th...
by Lucky4Me
06 Oct 2023 15:27
Forum: DOS Batch Forum
Topic: I'd like to start Filezilla on a network PC
Replies: 5
Views: 20789

Re: I'd like to start Filezilla on a network PC

Use robocopy, if you want to transfer files from a remote pc to a local pc, or create a share, remote pc is in your own lan.

enter robocopy /? in a cmd window, gives you the options to use
by Lucky4Me
06 Oct 2023 08:46
Forum: DOS Batch Forum
Topic: I'd like to start Filezilla on a network PC
Replies: 5
Views: 20789

Re: I'd like to start Filezilla on a network PC

Check this https://learn.microsoft.com/en-us/sysinternals/downloads/psexec and then try to run the command as follows @Echo On CHCP 65001 SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION set USERNAME=docfxit SET /P PASSWORD="Enter the user password: " ECHO. ::net use * /d /y ::net use Z: \\...
by Lucky4Me
17 Jun 2023 13:37
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 8129

Re: Script issue on "FINDSTR"

This is what i get C:\>REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | findstr ProductName ProductName REG_SZ Windows 10 Pro C:\>wmic os get Caption Caption Microsoft Windows 10 Pro C:\>systeminfo|find /i "os name" OS Name: Microsoft Windows 10 Pro C:\>
by Lucky4Me
17 Jun 2023 08:25
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 8129

Re: Script issue on "FINDSTR"

Maybe this can help? @echo off REM Check the OS version for /f "tokens=3-5 delims= " %%i in ( 'REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr ProductName' ) do set "winversion=%%i %%j %%k" if "%winversion%" == "Windows 10 Enterprise" ( set "install_folder=\\server\share\Ent...
by Lucky4Me
17 Jun 2023 07:16
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 8129

Re: Script issue on "FINDSTR"

Have you run "wmic os get Caption" in a DOS window on the PC?
Because when i run it i'll get "Microsoft Windows 10 Pro" not "Microsoft Windows 10 Professional" and that's a great difference!