Announcement

Collapse
No announcement yet.

Copying problem

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

  • 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?

  • #2
    You are not expanding the session variable of the target location.

    Ulrich

    Comment


    • #3
      So obvious, stupid me!

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

      Thanks for the quick reply.

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎