View Single Post
Old 03-17-2004, 02:04 AM   #5
rando
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
I belive this can be done quite trivially using the native XP cmd shell (see the extended FOR command options and environment variable string substitution). It should look something like the 1 liner below.

@echo off && (for /f "tokens=*" %I in (oldplaylist) do ((set z=%I) && (echo !z:badpath=goodpath! >> newplaylist))) && @echo on

** Make sure you run cmd /E:ON /V:ON first to enable command extensions and delayed environment variable expansion


It can definitely be done trivially within the Windows Script Host hosted languages (VBScript,...). It's too late for me to start this 10 minute task (likely to become hours).
__________________
2004 4runner

Last edited by rando; 03-17-2004 at 02:54 AM.
rando is offline   Reply With Quote