Announcement

Collapse
No announcement yet.

Copying problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stanislaw
    replied
    So obvious, stupid me!

    File.Copy(SessionVar.Expand("%AppFolder%\\Scenery\ \FILE.dxf"), SessionVar.Expand("%OtherFolder%\\World\\Scenery\\ "), false, true);

    Thanks for the quick reply.

    Leave a comment:


  • Ulrich
    replied
    You are not expanding the session variable of the target location.

    Ulrich

    Leave a comment:


  • Stanislaw
    started a topic Copying problem

    Copying problem

    Hello guys.
    Seems like an easy-to-solve problem.

    File.Copy(SessionVar.Expand("%AppFolder%\\Scenery\ \FILE.dxf"), "%OtherFolder%\\World\\Scenery\\", false, true);

    ...results in no file being copied while both variables were triple-checked to be correct. I am putting the command into the After Installing - On Preload window. The idea is simply to copy the FILE.dxf file (after installation) from %AppFolder%\\Scenery to %OtherFolder%\\World\\Scenery . AM I doing something stupid?
Working...
X