AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page
   Networked Database  Computer Support/Help/Discussion...   [292 / 1624] RSS
 From   To   Subject   Date/Time 
Message   Nick Andre    All   CopyM3U   September 28, 2020
 5:53 AM *  

(*         COPYM3U 1.0 Copyright (c) Nick J. Andre, Ltd. Freeware.        *)
(*                                                                        *)
(* CopyM3U creates a script/batch file that copies the files listed in    *)
(* the specified .M3U or .WPL file to a directory of your choice. Should  *)
(* be able to be compiled on any Pascal compiler and should also be easy  *)
(* to modify for Linux/non-Windows environments.                          *)

program copym3u;
uses dos;

var i,o:text;s:string[255];x:integer;
begin
  writeln('CopyM3U 1.0 Copyright (c) by Nick J. Andre, Ltd. Freeware.';);
  writeln;
  if paramstr(2)>'' then
   begin
    assign(i,paramstr(1));reset(i);assign(o,'copym3u.cmd';);rewrite(o);
    if ioresult=0 then
     begin
      while not eof(i) do
       begin
        readln(i,s);
        x:=pos('<media src="',s);
        if x>0 then
         begin
          s:=copy(s,x+11,length(s));s:=copy(s,1,length(s)-2);
         end
         else
         begin
          x:=pos('<',s);if x>0 then s:='';x:=pos('>',s);if x>0 then s:='';
         end;
        if (s<>'';) and (s[1]<>'#';) then
         writeln(o,'copy '+s+' '+paramstr(2));
       end;
      close(i);close(o);
     end
     else
      writeln('Error opening '+paramstr(1));
   end
   else
    writeln('Usage: copym3u [source .M3U or .WPL file] [destination]';);
end.

Nick

--- Renegade vY2Ka2
 * Origin: Joey, do you like movies about gladiators? (618:500/24)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Computer Support/Help/Discussion...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0146 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.1.241108