ok please i know im stupid lol,
no really what i want is someone to helpppppppppp
make a script that will check a directory and if there is any files in the directory, i wud liek it to send the names of them files to ops in pm, but i have tried for days, i give up yesterday, and now, i scrapped and come ask here he he he
plzzzzzzzzz help :o)
honestly dunno if possible, but wud be the greatest if someone help meeeeeeeeee :o)
Well i got this code from RabidWombat once, duno but maybe it's wath you looking for...
The first problem is getting the files inside of the folder. To do this we use:
execute("dir /a-d /b > files.txt");
This will write all of the files in the current folder in bare format into "files.txt":
filename1.txt
filename2.txt
etc...
Now you parse that file and grab the names.
L8trz
Hmmm, what i want is, so when you move a txt file to a particalar folder, the script checks this folder and if there are any files, it checks the files and returns the names
this is all because i have a big plan that may just help out with all the scripters with big bots :o)
Gekko, Robocop, CB, Meanmachine, Brutus, DarkMind
and many others...... :o)
but...... until i find away i cant show you the great idea ;)
but its so hard to find away
take a look @ guibs database script, i can remember he was talking about something like that when he made it.
plop
hmmm ok will do thx
GUIBS!!!!!!!!!!!! HELP PLEASE!!!!!!!!!!!!!! :D:D:D:D
he he he
QuoteOriginally posted by (uk-kingdom)pH?tt?
GUIBS!!!!!!!!!!!! HELP PLEASE!!!!!!!!!!!!!! :D:D:D:D
shout louder. lol
plop
ahhhhhhhh lol i cant my throad nacked up now he he he
*cough* *cough*
lol :o)
QuoteOriginally posted by Optimus
Well i got this code from RabidWombat once, duno but maybe it's wath you looking for...
The first problem is getting the files inside of the folder. To do this we use:
execute("dir /a-d /b > files.txt");
This will write all of the files in the current folder in bare format into "files.txt":
filename1.txt
filename2.txt
etc...
Now you parse that file and grab the names.
L8trz
ive just been chatting with pur, and and looks like you are right, seems pur, just woke me up properly lol, and told me about the writing of all files, so thanx a bunch m8 :o)
aprreciated, now i will start trying top get my idea to work, if i get it to work you wil know ;)
sure no prob m8
I'm getting curious lol... :))
so from that how wud i check another folder such as
files/folders/
maby this can help you, it's a bat file wich does the trick.
@echo off
dir tricky %1 /-p /o:gn > "%temp%\Listing"
start /w notepad "%temp%\Listing"
tricky is a folder, the result is send 2 notepad.
i believe i found this stuff on the M$ site.
you can just execute the bat from the script.
plop
ahhh great idea plop thanx
What is this ;))
I mean what is it suposed too do ..
Seams like fun.
I have a question can one
execute this
execute("dir /a-d /b > files.txt")
without haveing the command prompt popping up ??
other question has somebody got a timer for LUA, like the Ptokax one?
QuoteOriginally posted by c h i l l a
I have a question can one
execute this
execute("dir /a-d /b > files.txt")
without haveing the command prompt popping up ??
other question has somebody got a timer for LUA, like the Ptokax one?
no dir needs the command prompt 2 run in.
it's a lua timer not ptokax.
if it would be ptokax you could have only 1 timer over all the scripts, but as you know you have 1 timer in every script (yes ok with tricks you can have more).
every script is launched in it's own virtual machine.
plop
okey, thanks :)... I thaught maybe one could hide the command promt...
btw do you have the function of the timer, cause I have problems to get it to work in LUA.
too bad that there is no dir function in luas itsself actually or?