Search found 5870 matches

by foxidrive
13 Oct 2016 21:00
Forum: DOS Batch Forum
Topic: compare two files line by line
Replies: 6
Views: 1758

Re: compare two files line by line

Change this if %%a EQU !file2Line!

to this if /i "%%a"=="!file2Line!"


and test it.
by foxidrive
12 Oct 2016 01:56
Forum: DOS Batch Forum
Topic: What is wrong with this batch copy code?
Replies: 2
Views: 1052

Re: What is wrong with this batch copy code?

I've made some changes and added debugging lines for you to try out. Not all the changes were needed and I'll outline the changes I made: 1) The parentfolder variable is enclosed in double quotes to protect against poison characters in the username etc. 2) The tokens=* would work fine in this situat...
by foxidrive
11 Oct 2016 04:30
Forum: DOS Batch Forum
Topic: compare two files line by line
Replies: 6
Views: 1758

Re: compare two files line by line

Test this code: @echo off ( < "file2.txt" ( for /F "usebackq delims=" %%a in ("file1.txt") do ( set file2Line= set /P file2Line= setlocal EnableDelayedExpansion if %%a EQU !file2Line! (echo %%a) else (echo --) endlocal ) ))>"newfile.txt" pause
by foxidrive
10 Oct 2016 23:02
Forum: DOS Batch Forum
Topic: compare two files line by line
Replies: 6
Views: 1758

Re: compare two files line by line

Questions for you.

1) Can the files have a differing number of lines?
2) Is the data always numerical?
by foxidrive
09 Oct 2016 10:11
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 5856

Re: Creating NFO style xml files with filenames included inside the file.

It does not create nfo files for those files that uses å Å ä Ä ö Ö é anymore. Can you copy one of those files to a folder somewhere else, and then run the script for that new folder? Make sure you open a cmd window and then start the batch script from that cmd window. Any error messages should rema...
by foxidrive
08 Oct 2016 18:16
Forum: DOS Batch Forum
Topic: Bézier curve animation symmetric fantasy art
Replies: 17
Views: 6003

Re: Bézier curve animation symmetric fantasy art

@foxidrive: Try an even smaller size; for example: Thank you Antonio. That worked for the two Bezier functions but your script gave me a string of Divide by zero errors. I have a spinal injury that has worsened to due to my progressive disease called EDS and it has made sleeping very difficult for ...
by foxidrive
08 Oct 2016 10:17
Forum: DOS Batch Forum
Topic: Creating NFO style xml files with filenames included inside the file.
Replies: 29
Views: 5856

Re: CMD/Batch/Script create text file with specific filname in the text?

Test this on some test folders - it seems ok here in a brief test. It is creating plain text files of course. @echo off for /r %%a in (*.mkv *.avi) do ( ( echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^> echo ^<movie^> for %%b in ("%%~na") do ech...
by foxidrive
08 Oct 2016 08:27
Forum: DOS Batch Forum
Topic: Bézier curve animation symmetric fantasy art
Replies: 17
Views: 6003

Re: Bézier curve animation symmetric fantasy art

set "hexWid=50" & set "hexHei=34" & REM Screen size in hexa: 80 x 52 If this change does not solve your problem, then perhaps it is related to the values set by REG ADD command... Thanks for your advice Antonio. Using your change the window is an odd shape but your anima...
by foxidrive
07 Oct 2016 05:54
Forum: DOS Batch Forum
Topic: tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch
Replies: 28
Views: 6952

Re: tobat.bat (Part of the BatFramework) - Drag and drop a file and turn it into batch

Squashman wrote:And we were all happier then pigs in shit when 28K modems came out.


Oink!
by foxidrive
07 Oct 2016 03:01
Forum: DOS Batch Forum
Topic: Bézier curve animation symmetric fantasy art
Replies: 17
Views: 6003

Re: Bézier curve animation symmetric fantasy art

Having tried the non-symetrical and symetrical code I find that it seems to need a mode command to set the size of the console widow. My system has a small meltdown in the console window and looks nothing like it should. Yours is colourful Antonio but still warped in the wrong console size or maybe ...
by foxidrive
06 Oct 2016 17:08
Forum: DOS Batch Forum
Topic: Count number processes executing
Replies: 8
Views: 2335

Re: Count number processes executing

I like to count how many times Chrome.exe appears and I run this script: This is another way of handling it. Several ways of determining what could be counted follow it, just coz it amused me to fiddle with irrelevant things. @echo off for /f "delims=" %%a in ('TASKLIST /FI "IMAGENAM...
by foxidrive
06 Oct 2016 15:15
Forum: DOS Batch Forum
Topic: report UNC path of folder in a mapped
Replies: 3
Views: 1032

Re: report UNC path of folder in a mapped

The person forget to update all the other forums the question was pasted to. :mrgreen: