VirtualFile>FileName,String

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 640
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

VirtualFile>FileName,String

Post by Grovkillen » Wed Apr 28, 2021 4:33 pm

Hi!

I would love to use virtual files to be able to use read (ini) file commands on strings without the need to create a physical file first. Something like this:

Code: Select all

Let>STRING=[info]%CRLF%key=XYZ
VirtualFile>VirtualIniFile,STRING
ReadIniFile>:VirtualIniFile:,info,key,RESULTING_VALUE
//RESULTING_VALUE=XYZ
Let>ME=%Script%

Running: 15.0.18
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 910
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: VirtualFile>FileName,String

Post by Dorian (MJT support) » Mon May 03, 2021 9:09 am

Have added to internal suggestion tracker.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Marcus Tettmar
Site Admin
Posts: 7331
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: VirtualFile>FileName,String

Post by Marcus Tettmar » Mon May 03, 2021 9:40 am

Unfortunately the INI file functions use Windows APIs which rely on ... files. Why not just save to a TEMP file. If we were to implement this that is probably exactly what we'd do behind the scenes. It would make much more sense than completely reinvent the Windows INI file handling API.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Grovkillen
Automation Wizard
Posts: 640
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Re: VirtualFile>FileName,String

Post by Grovkillen » Mon May 03, 2021 12:01 pm

Aha, yeah then I'll start relying on temp files. Thanks for pointing out the behinds of it.
Let>ME=%Script%

Running: 15.0.18
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts