Jump to content
UBot Underground

Using a Variable as a file name when saving a file


Recommended Posts

So I'm trying to use a variable as a file name when ubot saves a file, however when I try this it says that it does not support my formatting. That pretty much the wording. (vague)

 

Does anyone know a way to go about this? My code is below.

if(#save list) {
   then {
    set(#save file name, "{$date}-{#proseoid}-{#jobid}-assault.txt", "Global")
    save to file("C:\\Users\\Josh\\Documents\\SEO\\link-assaults\\completed-link-assaults\\{#save file name}", %link_assault_urls)
   }
}

Link to post
Share on other sites
  • 2 weeks later...
  • 3 months later...

Not as is, 'cause the format of the string that $date returns is not suitable for a file name - but you could extract info from the $date function and use bits from it only: 

 

Visit This Forum Thread

 

^^^ Hope that helps...

Link to post
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...
×
×
  • Create New...