Using variables in COPY

Hey gang, feel like I'm losing my mind today. Here is the script:

@set varpath = "c:\temp"
Copy "{$varpath}ICIS.Presentation.Web\web.config" TO "C:\temp" AS "web.config.web"

Doesn't work.

But this works:

Copy "c:\temp\ICIS.Presentation.Web\web.config" TO "C:\temp" AS "web.config.web"

Thoughts?

Try taking out the quotes around c:\temp\ in the @set line.

That did the trick, thanks.

But what if the varpath had a space in it? Wouldn't I have had to quote it then?

You've got the neccesary quotes around the path in the Copy line. Having them in the @set line would mean two lots of quotes, as the @set directive doesn't use quotes and includes any you give in the variable itself.

Cool Deal ... I love a day when you learn something new :slight_smile:

Alright, since I have everyone here ...

Is there anyway to pop up a "log" or window that I can write to during a process? I'd like to keep the user apprised of which leg of the code is being executed.

Possible? I know there is a CLI window ....

You can use DOpus.Output from a script, or TBone's Say command from a normal command.

Hey, that's damn handy that SAY script.

Now I need to figure out how to open the utility panel and show Script Output log programatically :slight_smile: