Search found 245 matches
- 18 Mar 2025 15:23
- Forum: DOS Batch Forum
- Topic: Copy PDFs from publish subfolder to two other locations
- Replies: 1
- Views: 2933
Re: Copy PDFs from publish subfolder to two other locations
hallo Calm, Are the file names formed according to any naming conventions that can be used for distribution? Which files should be copied? All those that are NOT saved in C:\BOX? Or should the data to be saved be selected again separately? c/box/project/123 - job name /01 drawings/pdfs/1000 - ELEV c...
- 23 Feb 2025 07:20
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 5177
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
Then please start this "CMD"-line that I have written for you in your host system (not Dosbox-x). We say command line, but this has remained the same over time although we now use different program names. In DosBoxx-x the command: “cmd.exe” is not supported. first it is not available in the “pathVar...
- 22 Feb 2025 12:22
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 5177
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
with the CMD liner you could see the directories which can be changed or which can remain as they are cmd /v /c " (for /f "delims=" %a in ('dir /s/b/ad D:\A_test') do @set "N=%~nxa" &set "n2=!n:~0,2!" &if NOT defined _!n2! (set "_!n2!=1" &echo T!n2!) else set "nx=T!n:~0,2!_!n:~2,3!" &if not defined ...
- 21 Feb 2025 11:31
- Forum: DOS Batch Forum
- Topic: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
- Replies: 8
- Views: 5177
Re: recursive dir name reading to make dir named batches(only 2 bytes used from reading)
Hallo (nm)³, Do you absolutely want to name the batch with the first two characters of the folder name, even though there may be name collisions because there are also three-letter names and the first two combinations occur several times? Perhaps this can be better avoided by using the first and las...
- 03 Jan 2025 13:58
- Forum: DOS Batch Forum
- Topic: need some corrections of processing a batch for "!" for DelayedExpansion
- Replies: 2
- Views: 20468
Re: need some corrections of processing a batch for "!" for DelayedExpansion
When set the Variables with "!" - you need to turn of delayedExpansion. Otherwise you won't have any exclamation marks in the variable. @ECHO OFF SetLocal EnableExtensions disableDelayedExpansion SET P1=C:\firefox.exe SET K1=D:\a\F9-WEBSITE.TXT set "lineC=" REM **************************************...
- 04 Jul 2024 13:15
- Forum: DOS Batch Forum
- Topic: ENABLEDELAYEDEXPANSION in called bat files
- Replies: 2
- Views: 17343
Re: ENABLEDELAYEDEXPANSION in called bat files
Hello Miskos; You are trying to include exclamation marks in a variable while Delayed Expansion is enabled. You are trying to display a variable containing exclamation marks in percent signs during Delayed Expansion. You are aware of the fact that the inclusion of variables with exclamation marks ei...
- 25 Nov 2023 11:45
- Forum: DOS Batch Forum
- Topic: cmd.exe forensic?
- Replies: 1
- Views: 20085
Re: cmd.exe forensic?
Hi rodrigo.brasil, Cmd.exe is an extended version of command.com. A command line interpreter. A *.bat is evaluated by command.com. Cmd.exe evaluates *.bat and *.cmd. Cmd.exe opened as a command line loads an instance into memory. If a process is started in the command line, cmd.exe starts a subordin...
- 15 Nov 2023 06:25
- Forum: DOS Batch Forum
- Topic: Sequential file backup
- Replies: 5
- Views: 23622
Re: Sequential file backup
You can drag one or more folders or files onto the batch.
This corresponds to the full path as a parameter.
This corresponds to the full path as a parameter.
- 03 Nov 2023 11:58
- Forum: DOS Batch Forum
- Topic: Sequential file backup
- Replies: 5
- Views: 23622
Re: Sequential file backup
Hallo drgt,
What you are looking for is a small versioning of different states of one and the same file or files or folders.
You can find the appropriate script here:
viewtopic.php?t=7903#p52948
Just read the description
Phil
What you are looking for is a small versioning of different states of one and the same file or files or folders.
You can find the appropriate script here:
viewtopic.php?t=7903#p52948
Just read the description
Phil
- 05 Mar 2023 08:34
- Forum: DOS Batch Forum
- Topic: Robocopy issue
- Replies: 3
- Views: 10481
Re: Robocopy issue
As it looks in your case, everything can be the same in 7 backups. You can use the error level of Robocopy to know if something was copied or not. Depending on the result, you can then delete the oldest or the previously created folder. You can also check the old backup(s) for timestamps from seven ...
- 07 Feb 2021 06:13
- Forum: DOS Batch Forum
- Topic: Problem with variable Drive setup for XP/W98SE
- Replies: 18
- Views: 31663
Re: Problem with variable Drive setup for XP/W98SE
Hi,
I think its so (untestet)
Phil
I think its so (untestet)
Code: Select all
echo exit |command /k prompt set drive=$N |find "set" >Tempdrv.bat
echo.>>Tempdrv.bat
Call Tempdrv
Echo %drive%
- 03 Jan 2021 10:33
- Forum: DOS Batch Forum
- Topic: .bat does not always pass parameter correctly at EOF (end-of-file)
- Replies: 2
- Views: 5279
Re: .bat does not always pass parameter correctly at EOF (end-of-file)
It's actually related to the redirect. If the redirect sneaks into the command out of place, then the first token after the redirection is missing a whitespace character. If there are more than two tokens behind the redirection, the command line is executed in full. It is best to put the redirect at...
- 01 Jan 2021 06:38
- Forum: DOS Batch Forum
- Topic: Equivalent 9XDos code to NT Find bat/cmd path %~dp0
- Replies: 12
- Views: 17840
Re: Equivalent 9XDos code to NT Find bat/cmd path %~dp0
If you change to another directory, a possible drive change must also be made afterwards. I created an equivalent for Pushd and Popd in the win98 timestamp bat to create these variables (yy mm and so on). https://administrator.de/forum/win98-batch-datum-ermitteln-variable-splitten-tag-mon-jahr-22131...
- 18 Oct 2020 05:19
- Forum: DOS Batch Forum
- Topic: Proper way of getting function arguments with spaces and specials characters...
- Replies: 3
- Views: 6674
Re: Proper way of getting function arguments with spaces and specials characters...
maybe you can try it. :argsNtoTokens @echo off for /f "delims==" %%a in ('2^>nul set param_') do set "%%a=" if ! lss ' (setlocal disabledelayedexpansion) else setlocal @set prompt=$g$s :::::::::::::::::::: setting :::::::::::::::::::::::::::::::::: rem use comma or space as delimiter: set argsN=2,3,...
- 13 Sep 2020 15:39
- Forum: DOS Batch Forum
- Topic: A problem with symlink script
- Replies: 6
- Views: 8973
Re: A problem with symlink script
Hi absolutelyrandom1234, Is always problematic if the delayed variables are taken in the For-loop - but work is still delayed in "do". All that comes out is gibberish. Mixing the delayed- with forvariables can be done if there are no special characters to be expected. Always work with a delay in "in...