Have you tried ROBOCOPY instead of XCOPY?

> On Apr 11, 2018, at 1:38 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I think the problem is in escaping the file path.
> I'm trying to get xCopy to work.
> 
> I have tried a variety of variations, none of which want to work.
> That is why I would like to see what it is that LEP is handing off to 
> the OS
> 
> 
> On Wed, 11 Apr 2018 19:31:34 +0000, Timothy Penner wrote:
>> Hi Chip,
>> 
>> I agree with Tim Nevels' approach. It’s very solid.
>> 
>> Another thing to add, is that sometimes you may need to call the 
>> actual cmd.exe and feed your command into that, as described in this 
>> tech tip:
>> http://kb.4d.com/assetid=76658
>> 
>> On windows that would be like this:
>> 
>> $theRestOftheCommand:="cp thisFile here"
>> $command_t:="cmd.exe /C "+$theRestOftheCommand
>> LAUNCH EXTERNAL PROCESS($command_t)
>> 
>> Regarding this:
>>> I have done the set text to pasteboard thing, and I have pasted into 
>>> a .bet file -- it works.
>> 
>> Pasting it into a batch (I assume you meant .bat file) is not the 
>> same as running it in the Command Interpreter; for example, a batch 
>> file lets you execute multiple lines as a batch, while the Command 
>> Interpreter (and 4D's LEP) only lets you execute one line at a time.
>> 
>> Also, if the .bat file works, then you could always try executing the 
>> .bat file from 4D using LEP.
>> 
>> -Tim
>> 
>> 
>> 
>> Timothy Penner
>> Senior Technical Services Engineer
>> 
>> 4D Inc
>> 95 S. Market Street, Suite #240
>> San Jose,CA 95113
>> United States
>> 
>> Telephone: +1-408-557-4600
>> Fax:       +1-408-271-5080
>> Email:     tpen...@4d.com <mailto:tpen...@4d.com>
>> Web:       www.4D.com <http://www.4d.com/>
>> 
> ---------------
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html <http://lists.4d.com/faqnug.html>
> Archive:  http://lists.4d.com/archives.html 
> <http://lists.4d.com/archives.html>
> Options: https://lists.4d.com/mailman/options/4d_tech 
> <https://lists.4d.com/mailman/options/4d_tech>
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com 
> <mailto:4d_tech-unsubscr...@lists.4d.com>
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to