Jump to content
Macro Express Forums

Edit a text file without opening it?


Recommended Posts

I'd like to edit a .txt file (replace its entire text with the contents of a Text Var) but I'd prefer to do it "behind the scenes." I see how to rename it or change it's attributes, but not its content.... DOes anyone know if this is possible? THanks -steve

Link to comment
Share on other sites

To save the content of a variable into a text file use the Variable Modify String: Save %TextVar% to "c:\test.txt" command. If the file already exists, this will overwrite the contents of the file. If it does not already exist, the file will be created.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...