Search found 4 matches

by mhubers
16 Feb 2009 14:24
Forum: DOS Batch Forum
Topic: Here a hard problem with function calls.
Replies: 0
Views: 5202

Here a hard problem with function calls.

OK Here it goes... Let say I have a script that look somewhat like this. REM start of script call:ParsIt T T F "file1.txt" call:ParsIt T T F "file2.txt" ... call:ParsIt T T F "file10.txt" exit /b ::------------------------------------------------------------------------...
by mhubers
16 Feb 2009 10:21
Forum: DOS Batch Forum
Topic: [Resolved] delete duplicate mail in txt
Replies: 5
Views: 9365

Hi Spam_killer, I think the reason for for /F "delims==" %%A in ('"set foundone[ 2>nul"') do set "%%A=" is for doing house cleaning before you start parsing the file. You never know if the last time this script have junk in the env settings. Or user forgot to use setloc...
by mhubers
15 Feb 2009 22:07
Forum: DOS Batch Forum
Topic: Replacing backslash with slash
Replies: 3
Views: 11260

@ECHO off del data.xml SETLOCAL ENABLEDELAYEDEXPANSION for /F "tokens=*" %%c in ('dir *.bat /a-d /ogn /b /s') do ( set abspath=%%~fc call set "relpath=%%abspath:%cd%\=%%" rem echo abs=!abspath! rel=!relpath! set relpath=!relpath:\=/! echo ^<img^>!relpath!^<^/img^> ) Add "set...
by mhubers
15 Feb 2009 21:36
Forum: DOS Batch Forum
Topic: Replacing backslash with slash
Replies: 3
Views: 11260

Re: Replacing backslash with slash

Hi, What the format you looking to get? Something like this? c:\somedir\somemoredir\pic.jpg to <img>c:/somedir/somemoredir/pic.jpg</img> If so then i have just the thing for you. Mark awhile back I received some help here with a script the wrote the contents of a directory/subdirectories in their re...