Search found 384 matches

by Samir
23 May 2022 13:13
Forum: DOS Batch Forum
Topic: Optimization of Mass Copy Via Batch
Replies: 7
Views: 8433

Re: Optimization of Mass Copy Via Batch

Apparently I've asked this type of question before (but less specifically), and there was also an idea presented in that thread as well. I'm noting this here so I can digest that solution as well:
viewtopic.php?t=9164
by Samir
21 May 2022 13:57
Forum: DOS Batch Forum
Topic: Optimization of Mass Copy Via Batch
Replies: 7
Views: 8433

Re: Optimization of Mass Copy Via Batch

Thank you! This is an approach I never thought of, and hence why I posted since there are so many ways to skin this cat. :lol: I'm going to digest this better when I have time to sit down with it, but as you mentioned, I would be using some 'if not exist' to test for the presence of a target so that...
by Samir
19 May 2022 14:51
Forum: DOS Batch Forum
Topic: ZeroKs 0 KB file compression
Replies: 8
Views: 11767

Re: ZeroKs 0 KB file compression

A little late to the party, but NTFS also has the concept of file streams so you can store the data in a different stream that won't be visible. I'm actually surprised that malware hasn't used this as an exploit yet... Mostly because alternate data streams get cleared when you download the file Int...
by Samir
19 May 2022 14:50
Forum: DOS Batch Forum
Topic: Optimization of Mass Copy Via Batch
Replies: 7
Views: 8433

Re: Optimization of Mass Copy Via Batch

The way I would be using the NAS devices would be as standard windows network shares. I'm sure I could do something more advanced with rsync and the like, but I just want to keep it batch simple so when something goes wrong I have a better idea on how to fix it. The main challenge is to optimize all...
by Samir
18 May 2022 13:22
Forum: DOS Batch Forum
Topic: Optimization of Mass Copy Via Batch
Replies: 7
Views: 8433

Optimization of Mass Copy Via Batch

So this is more of a theoretical discussion to get an algorithm down as the coding itself should be fairly simple. So there are x about of nas units, each unit with a unique IP\path. ie NAS1 with path \\IP_NAS1\PATH_NAS1, NAS2 with path \\IP_NAS2\PATH_NAS2, etc. The paths will be unique as well as t...
by Samir
18 May 2022 12:39
Forum: DOS Batch Forum
Topic: Batch running files remotely
Replies: 5
Views: 9170

Re: Batch running files remotely

If you have access to a command/DOS prompt on a machine, you can execute a batch file that is stored elsewhere, but I don't know of a way to execute a batch file without being on the system or scripting its launch.
by Samir
18 May 2022 12:38
Forum: DOS Batch Forum
Topic: ZeroKs 0 KB file compression
Replies: 8
Views: 11767

Re: ZeroKs 0 KB file compression

A little late to the party, but NTFS also has the concept of file streams so you can store the data in a different stream that won't be visible. I'm actually surprised that malware hasn't used this as an exploit yet...
by Samir
07 Mar 2022 18:43
Forum: DOS Batch Forum
Topic: Problem with variable Drive setup for XP/W98SE
Replies: 18
Views: 26376

Re: Problem with variable Drive setup for XP/W98SE

This is definitely a fascinating thread as I remember seeing batch files back in the day from publishers as they wrestled with the same problems with their program installations from cd-roms. I know a lot of companies like Toshiba made a small .com program that would report back the current path (li...
by Samir
07 Mar 2022 18:20
Forum: DOS Batch Forum
Topic: TextToHtml.bat - Easily create World Wide Web pages!
Replies: 44
Views: 47653

Re: TextToHtml.bat - Easily create World Wide Web pages!

I'm glad I bookmarked this thread to look at it later. :) Very cool to be able to easily go from bbcode to html as the html tagging is tedious to me as well. Can't wait to play with your creation now. 8) Thank you for making this!
by Samir
14 Feb 2021 11:13
Forum: DOS Batch Forum
Topic: Find All Files with Same Filename But Different Extension
Replies: 11
Views: 14028

Re: Find All Files with Same Filename But Different Extension

I started from scratch and took a completely different approach. The following worked to give me what I wanted: REM LIST OF ALL *.REC FILES ON DRIVE TO REC DIR \\192.168.1.10\ROOT\*.REC /S/B > \\192.168.1.10\ROOT\REC REM LIST OF ALL *.PDF FILES ON DRIVE TO PDF DIR \\192.168.1.10\ROOT\*.PDF /S/B > \\...
by Samir
12 Feb 2021 21:10
Forum: DOS Batch Forum
Topic: Find All Files with Same Filename But Different Extension
Replies: 11
Views: 14028

Re: Find All Files with Same Filename But Different Extension

I think you have a fundamental problem with your goal requirements - as currently stated, I believe you can have ambiguous situations. Given files abc.rec and abc1.pdf, your rules state that those should be a pair. But then what happens if later on abc1.rec is added? You could argue the pdf can be ...
by Samir
12 Feb 2021 14:01
Forum: DOS Batch Forum
Topic: Find All Files with Same Filename But Different Extension
Replies: 11
Views: 14028

Re: Find All Files with Same Filename But Different Extension

When I run the following command using the first line in the RECBAS.TXT file, the command works fine: FINDSTR /C:brn_91b3be_015016 D:\PDF The results are expected: \\192.168.1.10\ROOT\SPROOT\INCOMING\brn_91b3be_015016_recovered.pdf Anyone have an idea why the file in /G in my previous post isn't bei...
by Samir
11 Feb 2021 14:55
Forum: DOS Batch Forum
Topic: Playing a .wav file in the background
Replies: 4
Views: 9700

Re: Playing a .wav file in the background

At one point back in the day when I had some free passes to COMDEX in Atlanta right at around the time Win95 was released, myself and 2x friends unleashed a script at the Microsoft booth that after 30 minutes would play the 'start me up' song and then change the boot image to windows F***ing 95 and ...
by Samir
11 Feb 2021 14:45
Forum: DOS Batch Forum
Topic: Problem with variable Drive setup for XP/W98SE
Replies: 18
Views: 26376

Re: Problem with variable Drive setup for XP/W98SE

I remembered another way to get the current drive and path--and it was simple and I used to use it so much back in the day

Code: Select all

CD
Without any options it will simply display the present working drive with full path.
by Samir
11 Feb 2021 14:35
Forum: DOS Batch Forum
Topic: Find All Files with Same Filename But Different Extension
Replies: 11
Views: 14028

Re: Find All Files with Same Filename But Different Extension

Thank you again penpen. And as I worked through your suggestions, I realized another detail I missed in my initial analysis--the PDF files will contain the REC filename, but may also have other stuff appended, so now even if I can take each path and parse out the file name, the file names won't exac...