Josh 37 Posted September 28, 2012 Report Share Posted September 28, 2012 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) } } Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 28, 2012 Report Share Posted September 28, 2012 its correct but also keep in mind since Windows xp and higher max file path including file name and extension cant exceed 255 characters Quote Link to post Share on other sites
Josh 37 Posted October 7, 2012 Author Report Share Posted October 7, 2012 What about using $date in the file name? Quote Link to post Share on other sites
Josh 37 Posted October 7, 2012 Author Report Share Posted October 7, 2012 Nevermind. It just hit me that I set the variable with the date before I use the variable in the file name. duh! Quote Link to post Share on other sites
luis carlos 94 Posted January 29, 2013 Report Share Posted January 29, 2013 Is it possible to use as name the date? Quote Link to post Share on other sites
VaultBoss 310 Posted January 29, 2013 Report Share Posted January 29, 2013 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... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.