Re: Directory and Filenames
So...no one can help me then? :/
Jesse~
Re: Directory and Filenames
You can launch the File Object - Open directory selector. Use the source directory as the default. Once the user selects a directory and clicks OK you can poll the File Object for the File selector - Get resulting pathname. (which will be the one the user selected) This will be the full path including the drive. From there you can append + "\" + <filename>
Re: Directory and Filenames
Yes, but my problem is that I don't want the user to have to type in the filename. I want them to be able to select the filename from the Open File Selector and then what I want the program to do is be able to seperate the path and the filename so I can have control over where the file being encoded goes to.
Something so simple seems like a pain. :|
Jesse~
Re: Directory and Filenames
Maybe you're looking for this...
You can split the full path of a file with the File object:
e.g. "C:\folder\file.exe"
[color:#FF0000]-->[/color]
DriveName$( "File", "C:\folder\file.exe") [color:#FF0000]-->[/color] C:
DirectoryName$( "File", "C:\folder\file.exe") [color:#FF0000]-->[/color] \folder\
FileName$( "File", "C:\folder\file.exe") [color:#FF0000]-->[/color] file
ExtensionName$( "File", "C:\folder\file.exe") [color:#FF0000]-->[/color] .exe
Re: Directory and Filenames
I'll try that out when I'm done! Thanks for the info.
Jesse~
Re: Directory and Filenames
Yes, just like Gustav reiterated.
example here:
www.skiosk-esd.com/clickteam/MMF2_examples/filenames.mfa
Re: Directory and Filenames
You guys are awesome! That's JUST what I needed! Thanks so much for the information Gustav and for the file DT. This will help me out SO much!
Jesse~
Re: Directory and Filenames
No problem. We all need help from time to time. Just remember, at some point someone who is new to MMF will be asking a question and...
Re: Directory and Filenames