How to get the name of a text file

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Hello

I want to take a file, change it a lil bit, and then save it in another directory with the same filename as the original.
So I need to pull the name of the file into zenno. Problem is that I can't seem to file a macro to do that.

Anyone knows how to do this?
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83
Take the full path to the file, such as
\ Resources \ logins.txt

And then with regexp get file name
 

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Hm, that is when you know what the filename is on beforehand.

There are eg. 500 files in a directory, all with a different name, which I don't know on beforehand.
And zenno should take one file randomly out of it.
So I only know the directory (\Resources) and not the filename (\Resources\logins.txt).
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Just what I needed.
Thanks a lot!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)