Hi Dave,
Here's the source....

put the effective filename of this stack into tLocalPath
set the itemDelimiter to "/"
put "" into item -1 of tLocalPath

if tempSFile = tempLFile then
   if line 5 of thisSLine > line 5 of thisLFile then
put tServerPath & tempSFile into source -- So source looks like this "\\83.143.28.54\netcaresource\filesToDownload\AeroMedical.qrl" -- And tLocalPath = "C:/Netcare991 Source/"
        revCopyFile source,tLocalPath
        if the result is empty then
put tempSFile & " File Updated Sucessfully..."&cr after tempMessage
        end if
  end if
end if

Thanks for your assistance there Dave...
Nic
----- Original Message ----- From: "Dave" <[EMAIL PROTECTED]>
To: "How to use Revolution" <use-revolution@lists.runrev.com>
Sent: Wednesday, April 04, 2007 1:01 PM
Subject: Re: Using Shell to copy files


Hi,

AFAIK it works ok with spaces, paste your code into an email and I'll take a look, it works fine for me.

All the Best
Dave

On 4 Apr 2007, at 11:52, Nic Prioleau wrote:

Yeah I hear you... Problem is my revCopyFile is returning a 1, so I am not too sure what this means(other than it's in error). Does this command also worry about spaces in the folder names?

----- Original Message ----- From: "Dave" <[EMAIL PROTECTED]>
To: "How to use Revolution" <use-revolution@lists.runrev.com>
Sent: Wednesday, April 04, 2007 12:38 PM
Subject: Re: Using Shell to copy files


Hi,

What problems are you having with the revCopyFile command? AFAIK it works ok. This is a better way of doing since depending on what you are doing, using the shell or an external copy command may cause problems if you open the new file too quickly.

All the Best
Dave

On 4 Apr 2007, at 11:35, Nic Prioleau wrote:

Hi all,

having tried, with no result, to copy files using revCopyFile, I decided to try and use shell("copy"). The way I am doing it may seem a little odd but my syntax is this...

put quote & "copy "&source&space&tLocalPath&quote into tTest
set the hideConsoleWindows to true
get shell(tTest)

This works fine but only if the folder I am copying to does not have any spaces in it's name.

Can someone tell me how I would get around this problem. It's obviously a DOS issue but I am not sure of the syntax.

Thanks
Nic


#################################################################### ## ############### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal #################################################################### ## ###############
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


###################################################################### ############### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ###################################################################### ###############
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
#####################################################################################
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to