Search found 963 matches

by ShadowThief
04 Jul 2020 08:15
Forum: DOS Batch Forum
Topic: Robocopy show only new or changed files
Replies: 1
Views: 194

Re: Robocopy show only new or changed files

There's an /XO option to exclude old, unmodified files.
by ShadowThief
12 Jun 2020 14:06
Forum: DOS Batch Forum
Topic: Batch hex edit offset from filename
Replies: 8
Views: 601

Re: Batch hex edit offset from filename

Don't be too hasty; I think we're able to handle this. The 3AE offset is always on the same line in the same place. The hex files are ASCII only. Especially based on this. It should be trivial to write something that copies the first X lines of the file and the first Y characters of the line that 3A...
by ShadowThief
10 Jun 2020 14:07
Forum: DOS Batch Forum
Topic: Batch hex edit offset from filename
Replies: 8
Views: 601

Re: Batch hex edit offset from filename

I feel like I responded to this one already somewhere...

Do the HEX files contain hexadecimal characters, or are they regular ASCII characters? Is offset 3AE always on the same line?
by ShadowThief
09 Jun 2020 14:03
Forum: DOS Batch Forum
Topic: Find will NOT find EXACT input!
Replies: 3
Views: 412

Re: Find will NOT find EXACT input!

wmic has pattern matching capabilities that you can take advantage of. @echo off set KB_Number= set /p "KB_Number=>Enter the KB Number: KB" if "%KB_Number%"=="" ( echo Invalid. pause goto :Exit ) else ( echo Checking . . . ) set "hotfixid=" for /f "tokens=1,2 delims==" %%A in ('wmic qfe where "hotfi...
by ShadowThief
09 Jun 2020 12:54
Forum: DOS Batch Forum
Topic: Atan?
Replies: 5
Views: 525

Re: Atan?

Just about everything I could find online for how to calculate arctangent boiled down to "press the atan button on your calculator." Further digging ended up suggesting lookup tables and something called https://en.wikipedia.org/wiki/CORDIC, which I'm going to have to look into some more.
by ShadowThief
09 Jun 2020 09:44
Forum: DOS Batch Forum
Topic: Batch delete first 67 character all text file in folder
Replies: 2
Views: 380

Re: Batch delete first 67 character all text file in folder

> overwrites the file
>> appends to the end of the file
by ShadowThief
05 Jun 2020 12:25
Forum: DOS Batch Forum
Topic: Batch wont display anything on my new PC???
Replies: 5
Views: 516

Re: Batch wont display anything on my new PC???

In addition to the Colors tab, you might also want to check the values in the Terminal tab.

Image
by ShadowThief
05 Jun 2020 10:43
Forum: DOS Batch Forum
Topic: Batch wont display anything on my new PC???
Replies: 5
Views: 516

Re: Batch wont display anything on my new PC???

If it's just a black screen, blindly type color 07 and see if that fixes things
by ShadowThief
03 Jun 2020 11:49
Forum: DOS Batch Forum
Topic: How to add 'del ' as leading sttring of all lines of a file ?
Replies: 2
Views: 406

Re: How to add 'del ' as leading sttring of all lines of a file ?

Do you want to delete all of the files in the directory you're uploading to, or just the ones with the same filename? The FTP command mdel *.jpg will delete all of the JPG files from the target directory on the FT P server. Otherwise, you can use dir in a for loop, like this: for /f "delims=" %%A in...
by ShadowThief
02 Jun 2020 18:51
Forum: DOS Batch Forum
Topic: Performance & Optimization of Batch Files
Replies: 3
Views: 620

Re: Performance & Optimization of Batch Files

misol101 wrote:
02 Jun 2020 08:34
It would actually be interesting to know if there is any other common scripting language as slow as batch?
Powershell always seems pretty slow to start up
by ShadowThief
28 May 2020 15:23
Forum: DOS Batch Forum
Topic: Telnet Scripting Tool v.1.0 by Albert Yale
Replies: 11
Views: 850

Re: Telnet Scripting Tool v.1.0 by Albert Yale

The WAIT command will wait until the text that you tell it to wait for appears. Presumably the server displays something when it's ready to accept input, so just give the script that text and it will wait until that text appears before moving on to the next command.
by ShadowThief
28 May 2020 10:46
Forum: DOS Batch Forum
Topic: Telnet Scripting Tool v.1.0 by Albert Yale
Replies: 11
Views: 850

Re: Telnet Scripting Tool v.1.0 by Albert Yale

I'll let you figure out what you need to do for the last part where you enter a 3. @echo off ( echo address echo WAIT "login" echo SEND "your_login\m" echo WAIT "password" echo SEND "your_password\m" echo WAIT "Entrer le choix :" echo SEND "2\m" echo WAIT "Entrez une requete comme celles-ci (entrer ...
by ShadowThief
28 May 2020 00:10
Forum: DOS Batch Forum
Topic: Telnet Scripting Tool v.1.0 by Albert Yale
Replies: 11
Views: 850

Re: Telnet Scripting Tool v.1.0 by Albert Yale

WAIT is waiting for a response string, not for a specified amount of time. You have to tell it what the server is going to say. I can't help you with that since I don't have access to it.
by ShadowThief
27 May 2020 15:35
Forum: DOS Batch Forum
Topic: Telnet Scripting Tool v.1.0 by Albert Yale
Replies: 11
Views: 850

Re: Telnet Scripting Tool v.1.0 by Albert Yale

The usage is provided when you run the executable: Usage Syntax: tst10.exe /r:script.txt [options] /r:script.txt run script.txt [options] any of these: /o:output.txt send session output to output.txt /m run script in minimized window Usage Example: tst10.exe /r:script.txt /o:output.txt /m Scripting ...
by ShadowThief
21 May 2020 16:08
Forum: DOS Batch Forum
Topic: Find and open a subfolder (using 'for' and 'start')
Replies: 1
Views: 422

Re: Find and open a subfolder (using 'for' and 'start')

If you're going to pipe commands together in a for loop, you need to use the /f option, put the command in single quotes, remove delimiters to handle paths with spaces, and escape the pipes.

Code: Select all

for /f "delims=" %%a in ('dir /a:d /s /b ^|find "%~1" ^|find /v "bak"') do start "" "%%~a"