Thank you for the correction penpen! There were certainly more limits back in the day, that's for sure.
Search found 384 matches
- 10 Feb 2021 18:42
- Forum: DOS Batch Forum
- Topic: Problem with variable Drive setup for XP/W98SE
- Replies: 18
- Views: 19768
Re: Problem with variable Drive setup for XP/W98SE
- 10 Feb 2021 15:21
- Forum: DOS Batch Forum
- Topic: Find All Files with Same Filename But Different Extension
- Replies: 11
- Views: 10362
Re: Find All Files with Same Filename But Different Extension
Thank you very much penpen. The more I started delving into the specifics, I realized I had some mistaken assumptions in my original data. First, is that my list of file ending in .REC will have the full path. Can I use %~nxF to get just the file name from the full path read into the variable 'filen...
- 10 Feb 2021 11:19
- Forum: DOS Batch Forum
- Topic: Problem with variable Drive setup for XP/W98SE
- Replies: 18
- Views: 19768
Re: Problem with variable Drive setup for XP/W98SE
Someone correct me if I'm wrong, but you can use %~d0 to get the drive letter the batch is currently being run from. I can't recall if this worked this way in 95/98/ME, but I don't think it worked this way in DOS 6.0 and earlier. So in your batch this line ECHO PROMPT $N:>T2.BAT ($N: is a Prompt for...
- 08 Feb 2021 11:53
- Forum: DOS Batch Forum
- Topic: Find All Files with Same Filename But Different Extension
- Replies: 11
- Views: 10362
Re: Find All Files with Same Filename But Different Extension
Thank you penpen. How would I search the sorted filenames for pairs in successive lines? I can't think of what that test would look like logically. Thank you again for the help!
- 08 Feb 2021 02:16
- Forum: DOS Batch Forum
- Topic: Search broken
- Replies: 4
- Views: 4446
Re: Search broken
Whew I thought it was just me. I got a post error too, but it seems the db is fixed now. Will post back if I see any more issues.
- 08 Feb 2021 02:11
- Forum: DOS Batch Forum
- Topic: Find All Files with Same Filename But Different Extension
- Replies: 11
- Views: 10362
Find All Files with Same Filename But Different Extension
I have files like this on a drive in various different directories: brn008077cf04db_014868.REC brn001ba9ca5166_015479.REC brn008077cf04db_015727.REC brn008077cf04db_015767.REC brn008077cf04db_015982.REC brn008077cf04db_016928.REC brn008077cf04db_016600.REC brn008077cf04db_016679.REC brn008077cf04db_...
- 08 Feb 2021 01:43
- Forum: DOS Batch Forum
- Topic: store nth line of file in variable
- Replies: 11
- Views: 14078
Re: store nth line of file in variable
Me too! I forgot about this post and now forgot even what I was trying to do.
If I remember (if I didn't already solve it using some other method), I'll definitely post back.
If I remember (if I didn't already solve it using some other method), I'll definitely post back.
- 15 Aug 2020 19:46
- Forum: DOS Batch Forum
- Topic: store nth line of file in variable
- Replies: 11
- Views: 14078
Re: store nth line of file in variable
I hate to bump an older thread, but this is exactly what I needed to store a line of html into a variable from a file but it doesn't seem to work. :cry: I'm sure it has to do with the fact that html has all those wonderful < and > that will drive batch batty, but this is my challenge. Any assistance...
- 14 Jul 2020 12:15
- Forum: DOS Batch Forum
- Topic: Ducky Scripts and Batch Files?
- Replies: 0
- Views: 15331
Ducky Scripts and Batch Files?
I just found out about the Ducky Script 'language' as well as the dongle that started it all. I'm surprised there's not been a discussion here on how something like this can be used to quickly create a batch file and execute it on multiple systems by just the insertion of a usb device. Thoughts?
- 02 Jun 2020 01:32
- Forum: DOS Batch Forum
- Topic: Self Updating Continuously Running Batch
- Replies: 7
- Views: 6419
Re: Self Updating Continuously Running Batch
So I have to admit that my simplistic batch skills made it quite a task just to understand the solutions presented. And even after digesting them, going back to my very simple idea of just copying to a temp and then re-copying and re-executing to make a loop seemed to be the easiest way. Final code ...
- 30 May 2020 02:38
- Forum: DOS Batch Forum
- Topic: Copy files do not overwrite existing
- Replies: 11
- Views: 25970
Re: Copy files do not overwrite existing
I forgot exactly what I used, but will post it once I remember again. I'll also get the os version as I think that's a factor.
- 25 May 2020 22:21
- Forum: DOS Batch Forum
- Topic: Copy files do not overwrite existing
- Replies: 11
- Views: 25970
Re: Copy files do not overwrite existing
Thank you penpen. Did you try a solution with wildcards and see if the echo n works? That's where it seemed to break down for me.
- 24 May 2020 17:22
- Forum: DOS Batch Forum
- Topic: Copy files do not overwrite existing
- Replies: 11
- Views: 25970
Re: Copy files do not overwrite existing
Old topic, but I thought I would post. pipe an 'n' to each question on the overwrite. the /-y is required in batch files or it assumes /y. echo n|copy /-y c:\source\* c:\destination\* This works great for copy, but does not for xcopy. :( Anyone have a solution for xcopy? I have a xcopy /d that keep...
- 23 May 2020 14:25
- Forum: DOS Batch Forum
- Topic: Self Updating Continuously Running Batch
- Replies: 7
- Views: 6419
Re: Self Updating Continuously Running Batch
Thank you! Another idea to digest. It always amazes me how much you guys know about batch--I'm always in awe.
- 23 May 2020 13:11
- Forum: DOS Batch Forum
- Topic: Self Updating Continuously Running Batch
- Replies: 7
- Views: 6419
Re: Self Updating Continuously Running Batch
Thank you both for your fantastic responses! It is amazing the depth and breath of responses one gets here. 8) Simply fantastic. 8) You both have made me sit down and think again how I want to approach the task I wish the batch to accomplish. Once I have digested everything, I will post what I come ...