Search found 239 matches

by pieh-ejdsch
01 Jun 2020 10:29
Forum: DOS Batch Forum
Topic: Copy files do not overwrite existing
Replies: 11
Views: 25973

Re: Copy files do not overwrite existing

First you create a list of the files to be excluded. Only those that are in the source and the destination are listed. So the command backwards xcopy /LUY target source Just a bit with showing the source files. You add this to your correct command as an exclusion list. @echo off setlocal set prompt=...
by pieh-ejdsch
23 May 2020 13:23
Forum: DOS Batch Forum
Topic: Self Updating Continuously Running Batch
Replies: 7
Views: 6419

Re: Self Updating Continuously Running Batch

This batch does not use a label and can be changed easily, so it is the changeable second part. Only a copy is made in a subfolder, which then runs and runs ... @ rem Don't change this part @echo off setlocal rem Endless update part. This part controls the copying/updating of the batch. rem The batc...
by pieh-ejdsch
17 Apr 2020 11:59
Forum: DOS Batch Forum
Topic: How to make a scanner that scans a batch file?
Replies: 3
Views: 4459

Re: How to make a scanner that scans a batch file?

A simple first checkCMD.cmd that was started, which was created to find corresponding commands, variables, brackets, parameters etc. in batch files, is here. The output contains the numbers and the line found. This script can be easily expanded and new parameters and corresponding search terms can b...
by pieh-ejdsch
12 Apr 2020 16:32
Forum: DOS Batch Forum
Topic: Can't parse arguments to variable
Replies: 5
Views: 5625

Re: Can't parse arguments to variable

The comparison with your IF line does not work out as you would expect. If you want to know what goes wrong then you have to evaluate the displayed errors. For successful troubleshooting, it has proven useful to switch on the echo and thus to find something in the last displayed lines that leads to ...
by pieh-ejdsch
11 Apr 2020 09:11
Forum: DOS Batch Forum
Topic: Runaway problem with FINDSTR "Line {nnn} is too long"
Replies: 1
Views: 5230

Re: Runaway problem with FINDSTR "Line {nnn} is too long"

This is definitely the 2 GB limit. Since nothing can be written into the files with certainty, each file must be considered for itself. A line must be searched for without a line end, and at the same time the error message must be evaluated. You can even calculate how long this line is, for example....
by pieh-ejdsch
09 Mar 2020 07:11
Forum: DOS Batch Forum
Topic: batch file to move all files from one folder to another
Replies: 3
Views: 4768

Re: batch file to move all files from one folder to another

Hello Bob,
please search for MoveintTree

Phil
by pieh-ejdsch
10 Feb 2020 05:43
Forum: DOS Batch Forum
Topic: Subtract files from a folder
Replies: 1
Views: 5214

Re: Subtract files from a folder

What is diff?
Which specific (different) content have these files?
Test this
viewtopic.php?p=60645#p60645
or You can try doublettes finder?
by pieh-ejdsch
08 Feb 2020 15:43
Forum: DOS Batch Forum
Topic: [SOLVED] Script to older version of files when new ones are copied in?
Replies: 7
Views: 8920

Re: Script to older version of files when new ones are copied in?

There are already some useful scripts here. There is sure to be more.

File Versioning with Timestamp:viewtopic.php?t=7903#p52948

Make Backup cycle:
viewtopic.php?t=8956#p58728
by pieh-ejdsch
26 Jan 2020 00:26
Forum: DOS Batch Forum
Topic: best way to encrypt passwords in cmd files?
Replies: 9
Views: 19733

Re: best way to encrypt passwords in cmd files?

Maybe you shouldn't call the variable password.
More like count files or something.
Give the password file restricted / explicit user rights.
by pieh-ejdsch
25 Jan 2020 13:33
Forum: DOS Batch Forum
Topic: Check files GEQ 11000
Replies: 1
Views: 3221

Re: Check files GEQ 11000

Hallo Zero0,
Your script does not show how which variables are set, you can only assume that they are set. There is no If Else for either a directory, or in a loop, or recursively.
You can use a for /r loop for this.
Please use Code Tags.
by pieh-ejdsch
17 Jan 2020 17:49
Forum: DOS Batch Forum
Topic: Is there a way to update progress bar in Windows Vista to 10?
Replies: 5
Views: 6993

Re: Is there a way to update progress bar in Windows Vista to 10?

You can change the prompt so that the display can be used as output. https://www.dostips.com/forum/viewtopic.php?f=3&t=8051 @ECHO OFF if :%1 == :print shift &goto :print for /f %%a in ('copy /Z "%~dpf0" nul') do set "CR=%%a" :: This is a part of my batch SET "WGET_URL=https://eternallybored.org/misc...
by pieh-ejdsch
15 Jan 2020 13:53
Forum: DOS Batch Forum
Topic: Best way to obfuscate a Batch File?
Replies: 73
Views: 138964

Re: Best way to obfuscate a Batch File?

You should simply respect the work done here to achieve an expected result. [Yes, let's be careful.] I want to tell you something: I am usually in a hurry to explain to others how something works, AND then I don't notice how I am selling my work for a null value. It is my fault if it goes like this ...
by pieh-ejdsch
13 Jan 2020 11:42
Forum: DOS Batch Forum
Topic: cmd.exe chars needing quotes, and escaping redirection handles
Replies: 6
Views: 6109

Re: cmd.exe chars needing quotes, and escaping redirection handles

Oh. I also sometimes find some new files after testing at CMD or Batch. but mostly they are empty and should not be there. EG: b 1 .ABC ( %% ~nxf ! I have been using this with the addition of the tab key for a long time. When a new CMD instance is started, it almost doesn't matter what is entered in...