Search found 384 matches

by Samir
23 May 2020 02:01
Forum: DOS Batch Forum
Topic: Self Updating Continuously Running Batch
Replies: 7
Views: 6559

Re: Self Updating Continuously Running Batch

So after thinking about this for a bit it seems like this might be the best way: if the batch started is the original, copy the file to %temp% and execute it there. at the end of the batch, copy the file from the original to %temp% again if orig is newer and execute the %temp% copy again. This will ...
by Samir
22 May 2020 18:06
Forum: DOS Batch Forum
Topic: Self Updating Continuously Running Batch
Replies: 7
Views: 6559

Self Updating Continuously Running Batch

I'm sure some of you have one of these running, but I'm having trouble figuring out the best way to implement the 'updating' method. I have a batch that I execute that loops back it its beginning again when complete so it can run again. Now the problem is that if this batch is running and I update i...
by Samir
22 May 2020 17:41
Forum: DOS Batch Forum
Topic: Survey Popup - RESULTS
Replies: 8
Views: 77288

Re: Survey Popup - RESULTS

Since for years (decades?) this forum has only had one forum--DOS Batch--why not simply add forums for Powershell and Bash and see what happens? If there isn't enough activity you can always hide/delete them. 8)
by Samir
22 May 2020 17:37
Forum: DOS Batch Forum
Topic: transpose input file lines to columns w/ separator
Replies: 1
Views: 2638

Re: transpose input file lines to columns w/ separator

Thank you for sharing. I remember a long time ago there was a bath for something similar if not the exact same thing, but who knows how to find it. :?
by Samir
22 May 2020 17:23
Forum: DOS Batch Forum
Topic: Depicus wake on lan batch file question
Replies: 3
Views: 5078

Re: Depicus wake on lan batch file question

For older versions of windows that do not have timeout as a command, but do have a tcp/ip stack installed, I use the following for a timer:

Code: Select all

ping -n SECONDS 127.0.0.1 > NUL
where SECONDS is the number of seconds you want to pause.
by Samir
19 May 2020 15:07
Forum: DOS Batch Forum
Topic: pktmon.exe
Replies: 7
Views: 6781

Re: pktmon.exe

That's a bit misleading. You can snoop on traffic, but you can't inherently do anything with it. It's like Wireshark. But in the article, the author was able to get ftp passwords sent in the clear. Not all traffic on a lan is encrypted so I can easily see this being used by a malware toolkit to scr...
by Samir
19 May 2020 15:05
Forum: DOS Batch Forum
Topic: pktmon.exe
Replies: 7
Views: 6781

Re: pktmon.exe

That's a bit misleading. You can snoop on traffic, but you can't inherently do anything with it. It's like Wireshark. But in the article, the author was able to get ftp passwords sent in the clear. Not all traffic on a lan is encrypted so I can easily see this being used by a malware toolkit to scr...
by Samir
19 May 2020 12:41
Forum: DOS Batch Forum
Topic: pktmon.exe
Replies: 7
Views: 6781

Re: pktmon.exe

Very useful and very dangerous at the same time as a compromised system on a network can now automatically hack the network with the right batch file. :shock: That's a bit misleading. You can snoop on traffic, but you can't inherently do anything with it. It's like Wireshark. But in the article, th...
by Samir
19 May 2020 10:37
Forum: DOS Batch Forum
Topic: pktmon.exe
Replies: 7
Views: 6781

Re: pktmon.exe

Very useful and very dangerous at the same time as a compromised system on a network can now automatically hack the network with the right batch file. :shock:
by Samir
07 Jun 2019 21:09
Forum: DOS Batch Forum
Topic: Batch script that count all occurrences of a particular string
Replies: 1
Views: 4041

Re: Batch script that count all occurrences of a particular string

Ummm...the find command itself can do that--find /?
by Samir
06 Jun 2019 20:48
Forum: DOS Batch Forum
Topic: Copying Single Source to Multiple Destinations in Parallel
Replies: 4
Views: 7945

Re: Copying Single Source to Multiple Destinations in Parallel

I changed line 5 Call: nextcopy ... (comes from when you write from the phone.) Of course it makes no sense to send the data over the network several times. Maybe a batch can be started from the server / network in order not to resend the data from the client. To start with a trigger for automatic ...
by Samir
06 Jun 2019 09:15
Forum: DOS Batch Forum
Topic: Copying Single Source to Multiple Destinations in Parallel
Replies: 4
Views: 7945

Re: Copying Single Source to Multiple Destinations in Parallel

That is an interesting idea, although the code is going to take me some time to understand.

The only issue I see is with bandwidth. If by having two simultaneous copies running the bandwidth for each copy gets halved, the net speed will still end up being the same.
by Samir
05 Jun 2019 22:33
Forum: DOS Batch Forum
Topic: Copying Single Source to Multiple Destinations in Parallel
Replies: 4
Views: 7945

Copying Single Source to Multiple Destinations in Parallel

Most of us that have worked with computers have run into this problem in some form or another--you have one source and it needs to be copied to multiple destinations. And the normal solution is to run these copy operations serially, ie one at a time, so the execution time is N*NumberOfDestinations. ...
by Samir
27 Mar 2018 04:12
Forum: DOS Batch Forum
Topic: Renaming Files
Replies: 6
Views: 6716

Re: Renaming Files

So a couple of questions to clarify some things.

If a file is without an extension, you want it to start with "zz"?

If the file has a .txt, extension, it should be the same name as the mp3, except with a txt extension, correct?
by Samir
17 Mar 2018 18:40
Forum: DOS Batch Forum
Topic: Clean text
Replies: 11
Views: 9745

Re: Clean text

Compo wrote:
17 Mar 2018 17:22
Samir, look at the post right above yours :!:
Yeah, I'm sure that will solve the OP's issue--I just couldn't wrap my head around exactly what was going on there. :oops: