Search found 222 matches
- 09 Jul 2013 17:58
- Forum: DOS Batch Forum
- Topic: FTP Download only new files any file type
- Replies: 7
- Views: 7808
Re: FTP Download only new files any file type
Hi Again! I tinkered with your version of the FTP script and eventually got it to work: @Echo Off & setlocal enableextensions Set "FtpCommand=ls" Call:extractFileSection "[Ftp Script 1]" "-">"%temp%\%~n0.ftp" Set "FileList=" For /F "Delims=&...
- 08 Jul 2013 09:13
- Forum: DOS Batch Forum
- Topic: batch programming help
- Replies: 3
- Views: 3661
Re: batch programming help
Hello VVomble!
Um… what’s wrong with… ?
Or am I missing something? And why are you using set /p? What are you trying to achieve? Please explain your task in more detail.
- SB
Um… what’s wrong with… ?
Code: Select all
set "hex1=02ac08"
echo(%hex1%
Or am I missing something? And why are you using set /p? What are you trying to achieve? Please explain your task in more detail.
- SB
- 08 Jul 2013 09:04
- Forum: DOS Batch Forum
- Topic: FTP Download only new files any file type
- Replies: 7
- Views: 7808
Re: FTP Download only new files any file type
Hi Again!
Please post your source code. Trim comments and remove usernames and passwords. But one thing I did notice—and this is a long shot—is a missing quote before the ls command.
Good luck!
- SB
Please post your source code. Trim comments and remove usernames and passwords. But one thing I did notice—and this is a long shot—is a missing quote before the ls command.
Good luck!
- SB
- 06 Jul 2013 15:44
- Forum: DOS Batch Forum
- Topic: FTP Download only new files any file type
- Replies: 7
- Views: 7808
Re: FTP Download only new files any file type
Hi CastorTroy! FindStr regular expressions are different from wildcard patterns. Try something like this: set FindStrArgs=/x "..*\...*" The above should output only filenames containing at least one dot. If it doesn’t, let me know. If that isn’t what you need, again get back to me and we’l...
- 06 Jul 2013 08:34
- Forum: DOS Batch Forum
- Topic: Using setver with win98 boot disk and msdos 6.22 programs ?
- Replies: 4
- Views: 12429
Re: Using setver with win98 boot disk and msdos 6.22 program
Hi Again!
Have you tried The CD Forum? The site is devoted to bootable CDs and boasts no less than 8 subforums. Surely one of the gurus there will be able to help you. And when he/she does, please come back and let us know what pearls of wisdom were bestowed on you.
- SB
Have you tried The CD Forum? The site is devoted to bootable CDs and boasts no less than 8 subforums. Surely one of the gurus there will be able to help you. And when he/she does, please come back and let us know what pearls of wisdom were bestowed on you.
- SB
- 06 Jul 2013 05:48
- Forum: DOS Batch Forum
- Topic: %~z1 question
- Replies: 6
- Views: 8976
Re: %~z1 question
@npocmaka_: Welcome to DosTips! @Squashman: You’re absolutely right, as usual. I overlooked this line: SET "z1=%~z1" Dave had said previously that one solution would be to use delayed expansion, so I made a link where there was none and confused !1z! in Endoro’s snippet with the erroneous ...
- 05 Jul 2013 16:56
- Forum: DOS Batch Forum
- Topic: %~z1 question
- Replies: 6
- Views: 8976
Re: %~z1 question
@Endoro: Thanks for the revised code! It never occurred to me that parameters could be referred to as “!~z1!” using delayed expansion. I don’t remember seeing it used before. I’ve seen “!%~1!”plenty of times, but that’s a whole other box of crayons. @Dave: Thanks for the great explanation. It makes ...
- 04 Jul 2013 14:13
- Forum: DOS Batch Forum
- Topic: Using setver with win98 boot disk and msdos 6.22 programs ?
- Replies: 4
- Views: 12429
Re: Using setver with win98 boot disk and msdos 6.22 program
Hi Taripo! DOS 6.22 programs should run without any problems under Windows 98, or am I missing something? If you’re trying to execute an old DOS program under XP or higher, try right-clicking on it, selecting Properties from the pop-up menu, and click on the Compatibility tab… although I doubt if th...
- 04 Jul 2013 13:21
- Forum: DOS Batch Forum
- Topic: DISKPART UNIQUEID=GUID failure. Why ? Any Alternatives ?
- Replies: 2
- Views: 8256
Re: DISKPART UNIQUEID=GUID failure. Why ? Any Alternatives
Hi Alan!
Wow! I didn’t understand a word of that. Sounds like the kind of thing Fred Langa of Windows Secrets fame would sink his teeth into. Or have you solved the problem on your own in the meantime? Don’t leave us hanging in suspense!
- SB
Wow! I didn’t understand a word of that. Sounds like the kind of thing Fred Langa of Windows Secrets fame would sink his teeth into. Or have you solved the problem on your own in the meantime? Don’t leave us hanging in suspense!
- SB
- 04 Jul 2013 13:09
- Forum: DOS Batch Forum
- Topic: Automation of Microsoft Forefront Endpoint Protection
- Replies: 1
- Views: 2731
Re: Automation of Microsoft Forefront Endpoint Protection
Hi KidHaxMan!
What did you type into Google? I just tried “microsoft forefront command line” and got lots of promising results.
Good luck!
- SB
What did you type into Google? I just tried “microsoft forefront command line” and got lots of promising results.
Good luck!
- SB
- 04 Jul 2013 13:00
- Forum: DOS Batch Forum
- Topic: Help with batch file - combine 2 files
- Replies: 1
- Views: 2831
Re: Help with batch file - combine 2 files
Hello Rookie! Just noticed your post in the list of unanswered topics. You probably didn’t get any replies because you weren’t specific enough. Are the two files you wish to merge text files? Could you give a sample of both? And how do you want them merged? One after the other, or side by side? - SB
- 02 Jul 2013 15:33
- Forum: DOS Batch Forum
- Topic: %~z1 question
- Replies: 6
- Views: 8976
%~z1 question
Dear DosTips, Please peruse the following snippet: if "%~1" neq "" ( if %~z1 equ 0 ( echo(file is empty ) else echo(file is not empty ) else echo(no cmdline args found If a filename is supplied on the command line, all is well. But if no filename is specified, the program throws ...
- 02 Jul 2013 13:13
- Forum: DOS Batch Forum
- Topic: var inside for /f loop’s in (…) clause
- Replies: 3
- Views: 3484
Re: var inside for /f loop’s in (…) clause
Thanks Dave! The scary thing is that I actually understood your explanation. Another little piece of the puzzle has fallen into place. Anyways, for anyone still reading this topic, to make the LF variable work inside the for /f loop’s in (…) clause using delayed expansion, you would have to do the f...
- 02 Jul 2013 07:10
- Forum: DOS Batch Forum
- Topic: var inside for /f loop’s in (…) clause
- Replies: 3
- Views: 3484
var inside for /f loop’s in (…) clause
Hello All! The little snippet below outputs the number and contents of any lines found in a user-specified file that don’t contain a Line Feed. And then it does it again. First using a bare findstr, and then using findstr wrapped inside a for /f loop’s in (…) clause. @echo off & setlocal enablee...
- 16 Jun 2013 15:29
- Forum: DOS Batch Forum
- Topic: new findstr bug
- Replies: 20
- Views: 26164
new findstr bug
Dear DosTips, I tried piping a single character into findstr using set /p, type, and findstr itself. The results were the same: absolutely nothing! findstr silently gobbled it up. > <nul set /p "=#" | findstr /n "^" (no output) > <nul set /p "=##" | findstr /n "^&q...