<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=187442218-11092009><FONT color=#0000ff 
size=2 face=Arial>If you're going to use opehdir() as you say with SYSTEM, then 
do yourself ahother favor and get rid of the NeXTDIR.. Why "execute" that 
command for every file in the folder, when all you have to do is increment a 
counter and it automaticlly points to the next file.&nbsp; I'm missing your 
logic here.&nbsp; Or, maybe I didn't explain the @dirlist arrays wlell 
nough.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=187442218-11092009><FONT size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=187442218-11092009><FONT size=2 
face=Arial>JE</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> 
  filepro-list-bounces+john=valar.com@lists.celestial.com 
  [mailto:filepro-list-bounces+john=valar.com@lists.celestial.com] <B>On Behalf 
  Of </B>Tyler<BR><B>Sent:</B> Friday, September 11, 2009 10:46 AM<BR><B>To:</B> 
  filepro-list@lists.celestial.com<BR><B>Subject:</B> Re: Re: USER command 
  questions (Fairlight)<BR></FONT><BR></DIV>
  <DIV></DIV><BR>
  <DIV class=gmail_quote>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Date: Thu, 10 Sep 2009 21:34:45 -0400<BR>From: Fairlight 
    &lt;<A 
    href="mailto:fairlite@fairlite.com">fairlite@fairlite.com</A>&gt;<BR>Subject: 
    Re: USER command questions<BR><BR>&gt; Can anyone tell me how to use cp or 
    mv with the USER command? &nbsp;Or is it just<BR>&gt; garbage and I should 
    go back to SYSTEM? <BR></BLOCKQUOTE>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>You're assigning the 'move' "alias" (ie., USER handle or 
    whatever the<BR>proper fP parlance for it is) first, there. &nbsp;And then 
    you're essentially<BR>piping in arguments to it, rather than having them all 
    as one command.<BR><BR>In shell terms, what you're doing is essentially the 
    same as:<BR><BR>$ mv &lt;&lt;END<BR>&gt; -f<BR>&gt; 
    /some/path<BR>END<BR><BR>That's why 'mv' is bailing on you. &nbsp;It's not 
    meant to be used that way.<BR><BR>Forget using USER for 'mv'. &nbsp;It's 
    nothing you get interactive feedback<BR>from, so USER is overkill. 
    &nbsp;Assemble the entire command with arguments and<BR>feed it to SYSTEM 
    for each file.<BR><BR>Also, be VERY careful with dirlist. &nbsp;It has a 
    filename length limitation<BR>that will bite you if the filenames are longer 
    than the memory allocated to<BR>the function's memory storage.<BR><BR>Back 
    to the original: &nbsp;Only use USER when you require interactive 
    feedback<BR>from and/or interactive data supply to a process. &nbsp;Neither 
    'mv' nor 'cp'<BR>fall into that category.<BR><BR></BLOCKQUOTE>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks Mark!&nbsp; That was exactly the answer I was looking for!&nbsp; I 
  will stick with SYSTEM for mv then, and OPENDIR/NEXTDIR for getting the 
  filenames :)&nbsp; (thanks to John Esak for the demo on how OPENDIR's 
  usage)<BR><BR>Tyler<BR></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>