At 10:55 AM 2/19/2015, Hodges, Dennis wrote:

This must be simple, I just can't seem to get it. I want to concatenate
a dot variable with a string.  I want to set a path in a dot variable
(.mysource) and copy a file("Add2014Shortcut.vbs") to another dot
variable (.mytarget).  How is this done?

Dennis,

Here's how ...

A very simple example

-- Build text string with given variables to copy file
   SET VAR vFileName TEXT = 'filename.ext'
   SET VAR vTargetFolder TEXT = 'D:\Junk'
SET VAR vCopyCommand TEXT = ('COPY'&(CVAL('CURRDIR'))+'\'+.vFileName&.vTargetFolder)
   &vCopyCommand
   RETURN

In your specific situation:

   SET VAR vFileName TEXT = 'Add2014Shortcut.vbs'
   SET VAR vTargetFolder TEXT = 'D:\Junk'
SET VAR vCopyCommand TEXT = ('COPY'&(CVAL('CURRDIR'))+'\'+.vFileName&.vTargetFolder)
   &vCopyCommand
   RETURN

That's all there is to it.

Note:

01. Change the QUOTES used in this example based upon your QUOTES settings
02. Make sure that you have full access rights to target folder

Have fun!

Very Best R:egards,

Razzak
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to