User Tag List

Results 1 to 3 of 3

Thread: Get command line expression

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Question Get command line expression

    Hi.
    Can it get only command line part (I don't need path of application.) use the "Get command line" expression?

    "C:\xxxxxx.tmp\stdrt.exe" /DIB /DEBUG /MIS1 etc.

    I want to get only "/DIB /DEBUG /MIS1" and other command lines.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello. I've come across a similar question before, and this usually puzzles me. Your objective here is to "split" up the command line into "tokens", for example:

    "C:\xxxxxx.tmp\stdrt.exe" /DIB /DEBUG /MIS1
    (Each colour represents a token.)

    There's an extension called String Tokenizer that can do this, and you (hopefully) should be able to work out that if /DEBUG is specified, do this etc...

    However, the only problem is that, depending on where the file is launched, Windows might be quotes ("") around the command line, depending if there's a space, and this usually has a problem when splitting up a string:
    Works: "C:\Folder1\Folder2\xxxxxx.tmp\stdrt.exe" /DIB /DEBUG
    This also works: C:\Folder1\Folder2\xxxxxx.tmp\stdrt.exe /DIB /DEBUG
    This has problems: "C:\Folder 1\Folder 2\xxxxxx.tmp\stdrt.exe" /DIB /DEBUG

    There are workarounds to this, my mind is a little rusty on this.

    Meanwhile, someone else in the community might have a better idea then splitting up the string, but this is what I remember picking up a long time ago.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    lh37 thanks for hint!
    I can get only part of command lines by use the delimiters "/" of string tokenizer, because "/" is cannot use for directory and filename.
    Attached files Attached files

Similar Threads

  1. Expression Editor Text formatting/new line command
    By at_da in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 11th June 2014, 10:04 AM
  2. MMF command line help?
    By FlameEX in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 18th January 2011, 05:43 PM
  3. Command Line
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd December 2008, 04:48 PM
  4. Is it possible with Command Line?
    By KICadm in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th August 2008, 05:00 PM
  5. Run Exe with command line
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st March 2007, 03:32 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
  •