Search found 17 matches

by JuanMa777
09 Jul 2017 20:19
Forum: DOS Batch Forum
Topic: How to get on videos folder with command line for any windows system ?
Replies: 7
Views: 5853

Re: How to get on videos folder with command line for any windows system ?

Hi Steffen,
I meant: He probably knows more. It was a compliment, you have 2700 post!
My English is not good, and sometimes I use Google translate: :lol:
I'm learning German, I hope to be better with your lenguaje.
Viele Grüße!
by JuanMa777
09 Jul 2017 08:54
Forum: DOS Batch Forum
Topic: How to get on videos folder with command line for any windows system ?
Replies: 7
Views: 5853

Re: How to get on videos folder with command line for any windows system ?

Hi, Note Steffen that perhaps Hackoo wanted to say the folder as a variable. I correct my words: In Vista exist Videos folder, sorry: . In my XP Home My Videos registry key is empty, perhaps for Home edition. Now remember that I have the same problem with "startup" folder. One solution is ...
by JuanMa777
08 Jul 2017 19:19
Forum: DOS Batch Forum
Topic: Split string in multiple variables of 100 domains each.
Replies: 7
Views: 4542

Re: Split string in multiple variables of 100 domains each.

Hi Antonio, I have joined your code with this other and seem that work well. I'll still try it anyway. This is the result: @echo off title script para footprinting cls rem setting file_1 because the delayed expansion set file_1=%1 setlocal enabledelayedexpansion set i=0 (for /f "tokens=2 delims...
by JuanMa777
08 Jul 2017 16:29
Forum: DOS Batch Forum
Topic: Split string in multiple variables of 100 domains each.
Replies: 7
Views: 4542

Re: Split string in multiple variables of 100 domains each.

Hola Antonio, I'm testing your code but I have a problem now. If I set a variable that have more of 101 domain names your code don't work. My strings need to support more than 5000 elements generally, and split in x elements (100 I suppose). I was modifying your code trying to solve that, but I can'...
by JuanMa777
08 Jul 2017 03:17
Forum: DOS Batch Forum
Topic: How to get on videos folder with command line for any windows system ?
Replies: 7
Views: 5853

Re: How to get on videos folder with command line for any windows system ?

Hi, I haven't MS Windows Seven, but I have a machine with XP and a virtual system with Vista. In the last two doesn't exist "Videos" folder. Maybe started to be implemented in 7. In 8 and 8.1 it is likely to be on the same path as MS Windows 10, that is where I write to you. I think that y...
by JuanMa777
07 Jul 2017 14:33
Forum: DOS Batch Forum
Topic: Split string in multiple variables of 100 domains each.
Replies: 7
Views: 4542

Re: Split string in multiple variables of 100 domains each.

Hi Aacini!, In first place sorry for haven't read your previous post, . Respect of your actual answer: . You are great in this! The code works perfect, with my actual skills I would never have come to that, so thank you very much. If I needed to do it some modifications first try (to learn...) and t...
by JuanMa777
07 Jul 2017 07:34
Forum: DOS Batch Forum
Topic: Split string in multiple variables of 100 domains each.
Replies: 7
Views: 4542

Re: Split string in multiple variables of 100 domains each.

Hi, first of all sorry for the double post, but since I did not see answers I decided to do this. I have made some progress. The code is this (the call command and other "adjuncts" that do the code dirty are because this: http://www.dostips.com/forum/viewtopic.php?t=3160 ): @echo off set s...
by JuanMa777
04 Jul 2017 16:05
Forum: DOS Batch Forum
Topic: Split string in multiple variables of 100 domains each.
Replies: 7
Views: 4542

Split string in multiple variables of 100 domains each.

Hi, I'm writing a code to do massive dns queries, but my tool to do it can't handle my full lists of domains. I thinks that my tool cant manage 100 quiries aprox. How can I do to split my full lists in many variables to do many quiries? The begin of my code is this: @echo off title script para footp...
by JuanMa777
16 Mar 2017 16:41
Forum: DOS Batch Forum
Topic: Multiple RegEx in findstr /r /c:"RegExs"
Replies: 2
Views: 2831

Re: Multiple RegEx in findstr /r /c:"RegExs"

Thanks Steffen, always helping me. When I can I will contribute to the forum.
I made some minor modifications, but your answer is the correct and very usefull.
I had not thought that alternative.
Regards!
by JuanMa777
16 Mar 2017 14:28
Forum: DOS Batch Forum
Topic: Multiple RegEx in findstr /r /c:"RegExs"
Replies: 2
Views: 2831

Multiple RegEx in findstr /r /c:"RegExs"

Hi, I wrote this code: @echo off title version detection cls for /f "tokens=*" %%n in ('ver ^| findstr /r /c:"[ ]6"') do set ver_1="%%n" for /f "tokens=*" %%n in ('ver ^| findstr /r /c:"[ ]10"') do set ver_2="%%n" if /i [%ver_1%]==[] (echo ...
by JuanMa777
31 Jan 2017 19:08
Forum: DOS Batch Forum
Topic: Findstr: find only words isolated, no as part of string.
Replies: 2
Views: 2681

Re: Findstr: find only words isolated, no as part of string.

Thanks Dave, your solution works!, but with a few words in keywords.txt. My keywords.txt is so big, and findstr in this mode take a eternity (or perhaps something is wrong).
Maybe the best is back to the old method, unless you or someone has a solution...
We see.
Thanks.
by JuanMa777
31 Jan 2017 16:39
Forum: DOS Batch Forum
Topic: Findstr: find only words isolated, no as part of string.
Replies: 2
Views: 2681

Findstr: find only words isolated, no as part of string.

Hello, I'm running a script to find some words, i. e. amor, man, pero, etc., but when I run it find this words even as part as other more long: amor=cl amor , man=work man , pero=pero nista , etc. How can I find with findstr this words (amor, man, pero) but isolated, the bordering characters no matt...
by JuanMa777
07 Nov 2016 08:21
Forum: DOS Batch Forum
Topic: Pass parameters to bat compiled to exe.
Replies: 2
Views: 2311

Re: Pass parameters to bat compiled to exe.

Thanks Steffen, very light, I'll try another solution.
Regards.
by JuanMa777
07 Nov 2016 07:24
Forum: DOS Batch Forum
Topic: Pass parameters to bat compiled to exe.
Replies: 2
Views: 2311

Pass parameters to bat compiled to exe.

Hi, I have an script that requiere parameters to complete your function. Some like, echo %1 and then, c:\>script.bat Maradona! but more complex. This is simple, the question is that I need to compile to exe my script to hide the content, and when I do this I can't no more pass it the parameters. c:\...
by JuanMa777
07 Nov 2016 07:04
Forum: DOS Batch Forum
Topic: Script don't find only in system partition...
Replies: 5
Views: 3982

Re: Script don't find only in system partition...

I'll try, I get only the logical disk through wmic. The issue is that I need several file extensions.
Thanks.