Jump to content
UBot Underground

Recommended Posts

Hi I need to add a line to my bot which deletes a file from AppData/Roaming/.../file.txt

 

Since every person has a different path to AppData folder how do you go about this?  How do you find out what the current users username is e.g:   C:\\Users\\  THIS COULD BE ANYTHING  \\AppData\\...?

 

I tried without success:  delete file("{$special folder("AppData")}\\Roaming\\...

Link to post
Share on other sites

Special Folder appdata includes the Roaming part of the path, so maybe remove that.

 

You can see the path it gives you here:

alert($special folder("Application Data"))

And it will change if your username is changed, for example, mine is this:

C:\Users\Nick\AppData\Roaming

I'm sure yours is different unless you have the same username

  • Like 1
Link to post
Share on other sites

Awesome thanks bud, changing AppData to Application Data, and removing Roaming worked :).  Final code:

 

delete file("{$special folder("Application Data")}\\UBot Studio\\cef_browser_log.txt")

  • Like 1
Link to post
Share on other sites

Actually if anyone else has issues with file ref_browser_log.txt becoming HUGE, mine got to 12gb once.  

 

Just go to the file and under preferences change it to read-only.  This is good for personal use, not great if you are selling bots however.

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...