User Tag List

Results 1 to 6 of 6

Thread: File Move Wildcards

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    File Move Wildcards

    Hi,

    I'm sure this is something obvious - but I've been fiddling with it for ages and still can't quite work it out!

    What I want to do is take a directory path from a .INI file and move all files ending in DATA.gif to another directory path, also taken from a .INI.

    Now loading and saving data to and from the .INI is fine - I know how to do that because I've had to do it before, but for some reason I can't get the file object to move files based on the path from the .INI using wildcards.

    What I've tried is variations on:

    IF User clicks on button THEN file object: move "path data from .ini" *DATA.gif to "2nd path data from .ini" *DATA.gif

    I always get a syntax error.

    I'm sure I've missed something obvious or trying to do something daft - I've had a look around for info but haven't found any. I'm going to dig out the install cds to see if any of the examples help!

    Would appreciate any input - even if it's to suggest a completely different approach!

    Thanks everyone


  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File Move Wildcards

    Shouldn't it be "Path" + "*Data.gif"
    Just make sure that Path ends with a \
    The target only needs the Path, no need to add *Data.gif

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File Move Wildcards

    I think we're getting closer - that makes more sense but still doesn't quite work.

    It looks like this:
    "CurrentDirectory$( "File" )"+"*DATA.gif"

    and I've also tried these:
    ""CurrentDirectory$( "File" )"+"*DATA.gif"" (more quotes)
    "CurrentDirectory$( "File" )"+"\*DATA.gif" (backslash just in case...)

    Thanks for your help!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: File Move Wildcards

    I've never tried wildcards in the file object.. I'll go have a play..

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File Move Wildcards

    Try:
    CurrentDirectory$( "File" )+"*DATA.gif"

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File Move Wildcards

    Are you sure the File objet can move or do anything with wildcards?

    File-Folder object has a wildcard condition and folder browsing loop (like a fastloop) and can do that but not as easy you want it to be.

Similar Threads

  1. Mouse Move / Finger Move (Touchscreen)
    By Spyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th December 2013, 04:00 PM
  2. Using wildcards in INI group names?
    By uncleswell in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 17th July 2012, 09:16 PM
  3. Using wildcards in INI search?
    By uncleswell in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th July 2012, 09:29 AM
  4. Wildcards
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd August 2010, 08:43 PM
  5. File Move Done?
    By kungsangun in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th May 2008, 10:25 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
  •