FileNames
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

FileNames

Started by pHaTTy, 11 November, 2003, 23:35:01

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pHaTTy

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)
Resistance is futile!

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

pHaTTy

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
Resistance is futile!

plop

take a look @ guibs database script, i can remember he was talking about something like that when he made it.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

pHaTTy

hmmm ok will do thx
Resistance is futile!

pHaTTy

GUIBS!!!!!!!!!!!! HELP PLEASE!!!!!!!!!!!!!! :D:D:D:D

he he he
Resistance is futile!

plop

QuoteOriginally posted by (uk-kingdom)pH?tt?
GUIBS!!!!!!!!!!!! HELP PLEASE!!!!!!!!!!!!!! :D:D:D:D
shout louder.  lol

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

pHaTTy

ahhhhhhhh lol i cant my throad nacked up now he he he

*cough* *cough*

lol :o)
Resistance is futile!

pHaTTy

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 ;)
Resistance is futile!

Optimus

sure no prob m8

I'm getting curious lol... :))

pHaTTy

so from that how wud i check another folder such as

files/folders/
Resistance is futile!

plop

#11
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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

pHaTTy

ahhh great idea plop thanx
Resistance is futile!

Tuben

What is this ;))

I mean what is it suposed too do ..
Seams like fun.
-Dark-Mind-[ DOWNLOAD ]

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?

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

c h i l l a

#16
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?

SMF spam blocked by CleanTalk