User Tag List

Results 1 to 6 of 6

Thread: Moving files with File Object

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2018
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Moving files with File Object

    Hello! This is my first post (Fusion 2.5 newbie)

    I'm getting some trouble trying to move a file with File object like this:

    "AppFolder\file.pdf" to "AppFolder\pdf\file.pdf"

    I know it might be simple, but I can't get it done. Maybe missing the syntax at some point.
    I tried to use the command Move file > "file.pdf" > "pdf\" but nothing happens.

    Ps.: sorry about the bad English...

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,717
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Hi fusion. Just for fun try changing the slash to this /

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)
    In Windows, you use backslash "\" so you move from "AppFolder\file.pdf" to "AppFolder\pdf\file.pdf" - if you want to display / visually in your app, just rewrite the string but for the file copying routine, you need to stick with backslashes.

    Also, you need to ensure the PDF folder exists, some extensions (by standards) will not have immediate permissions to just create folders on the users (or your) computer.
    Want to learn Clickteam Fusion 2.5?




  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2018
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Danny View Post
    In Windows, you use backslash "\" so you move from "AppFolder\file.pdf" to "AppFolder\pdf\file.pdf" - if you want to display / visually in your app, just rewrite the string but for the file copying routine, you need to stick with backslashes.

    Also, you need to ensure the PDF folder exists, some extensions (by standards) will not have immediate permissions to just create folders on the users (or your) computer.

    Got it! I was not putting the file name on the destination file window!

    Thanks!

  5. #5
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)
    Ah yes, you need to write the full path to be written to (including filename)
    Want to learn Clickteam Fusion 2.5?




  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,717
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Thanks for clarifying for me Danny. My bad and my brain leakage.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Replies: 2
    Last Post: 30th May 2014, 05:04 PM
  2. Loading Files - Weird problem with file object.
    By ukcode in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 31st August 2011, 02:14 AM
  3. Sample file for moving object when clicked
    By stillhawk in forum File Archive
    Replies: 2
    Last Post: 7th July 2007, 03:37 AM
  4. Moving Files to the Recycle Bin
    By raytrace in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2007, 05:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •