Search found 319 matches

by ghostmachine4
18 Jun 2009 22:07
Forum: DOS Batch Forum
Topic: Batch for remote ftp dowlaods
Replies: 7
Views: 10548

RElliott63 wrote:

Code: Select all

...
Set "Day=%Date:~3,2%"       REM Get Day of Month
....

getting day like this is dependent on regional settings. make it independent of it.
by ghostmachine4
18 Jun 2009 22:06
Forum: DOS Batch Forum
Topic: Batch for remote ftp dowlaods
Replies: 7
Views: 10548

if you can have gawk for win32 BEGIN{ ftpfile="Script.ftp" ftpip = "xx.xx.xx.xx" day = strftime("%d",systime()) print "UserID" > ftpfile print "Password" > ftpfile print "bin" > ftpfile print "lcd" > ftpfile p...
by ghostmachine4
18 Jun 2009 21:51
Forum: DOS Batch Forum
Topic: join txt-files
Replies: 7
Views: 12019

does the order of your files matter ??
by ghostmachine4
18 Jun 2009 21:44
Forum: DOS Batch Forum
Topic: FINDSTR: Print the found string, not the line.
Replies: 5
Views: 17449

Re: FINDSTR: Print the found string, not the line.

Hello, I need some help here. If I use this command: for /F %%a in ('dir /b *.avi ^| findstr /i "S[0-9]*E[0-9]*"') do (echo %%a) It will print the full filename. But I just want it to print the found string, for example: If one of the files is "Lost.S02E11.HDTV.avi" it would pri...