Jump to content



Photo

Read Then Delete 1St File In Folder


  • Please log in to reply
2 replies to this topic

#1 gavner25

gavner25

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 09 September 2019 - 12:59 PM

I'm using the standard version of Ubot and i need to be able to read and then delete the first file of a chosen folder, then repeat the process until every file in the folder has been read and deleted. I know i can't use the $getfiles function and i cannot upgrade so i need a workaround. Any ideas ?



#2 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1560 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 September 2019 - 04:54 AM

You mean you cant use $get files in Standard version?


UBot Expert Tutorials Store

 

 

Python and UBot expert tutorials and documentation


#3 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1560 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 16 September 2019 - 05:39 AM

you can try:

 

the free - filemangement plugin - it has a function to select multiple files from a file dialog.

available in the ubot store 

 

the free - advanced shell plugin - "$shell batch hidden function" cd into the directory and use the "dir" command then parse the filenames somehow, I have an idea.

you cant get the plugin now his site is down

 

the free - execute python plugin - do a ton of stuff with that, need to install python tho

 

pm me on skype or here of you need more help

 

regards,

CD


UBot Expert Tutorials Store

 

 

Python and UBot expert tutorials and documentation





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users