akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Wed Jan 25, 2017 1:53 pm Post subject: Easy Create Directory (Quiet). |
|
|
Some credit goes to panraven here for figuring out how to write a shellexecute to create a directory quietly.
All I did was write a simple usage script that is exposed in Cheat Engine as....
createDir(folderpath,newfoldername,openfolder,wait)
Usage is pretty straight forward.
folderpath: the folder you wish to make a directory in
newfoldername: new folder(s) name(s)
openfolder: a true or false statement to open folder after creation
wait: true will delay CE thread so folder can be written to immediatley with next line
return: provides full path
Code: |
--example:
create Multiple folders by seperating new folder with "\\"
local FP = [[C:\]]
createDir(FP,'Frodo\\Baggings')
|
Code: |
D = createDir("C:\\Frodo\\Baggins",'Bilbo')
print(D) ---> will return full path(new folder included) --C:\Frodo\Baggins\Bilbo
|
wait example:
Code: |
local FP = [[C:\]]
A = createDir(FP,'Bilbo\\Baggings',true,*false*) ------ Remove (*)'s to run
local f = io.open(A.."\\Hobbit.txt",'w')
f:write("Its a Book "..A.."\n")
f:close()
|
file write will FAIL but will not give pause to main CE thread.
Maybe thr is a betterway to write this thts faster and doesnt require a faux(wait). I am open to suggestion but this works rather well.
Description: |
|
Download |
Filename: |
Quiet Create Directory.lua |
Filesize: |
1009 Bytes |
Downloaded: |
1318 Time(s) |
_________________
|
|