Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
...
put "C:/pathHere" into tPath
put the folder into tOldDirectory
set the folder to tPath
put the files into tFiles
repeat for each line i in tFiles
delete file i
end repeat
set folder to tOldDirectory
delete folder tPath
...
set the itemDel to slash
set the defaultFolder to myPath
put the files into myFiles
filter myFiles without "."
filter myFiles without ".."
repeat for each line myFile in myFiles
delete file myFile
end repeat
set the defaultFolder to item 1 to -2 of myPath
delete folder myPath
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
What if the old directory is the same as the folder that is to be deleted?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode