Some questions

  • Автор темы Автор темы player
  • Дата начала Дата начала

player

Client
Регистрация
06.06.2011
Сообщения
154
Реакции
16
Баллы
0
1. Is there a possibility to tell ZP to not delete a file from harddisk? E.g. i have a file with 160 url's. ZP takes a URL and deletes it after successful execution. If the file is empty ZP deletes the file. I don't want to create a new file with this name, so i want that it stays as empty file on harddrive.

2. How can i tell ZP to quit the execution of a template automatically? I want to quit the template if the file is empty, how is that possible? thx

EDIT: second question was answered:

{-File.CountOfStrings-|-\Resources\filename.txt-} use this macros
and also logic
if count of strings == 0
than exit
 
you can use the macro 'copy the existing file into a new location' under files and folders, before you re taking lines from it. this way u keep a backup of the initial file and can replace again when u need it... can always do that mannualy ..
 
  • Оценить
Реакции: player
You can put a blank line as the first and in your macro always pull #1.
 
  • Оценить
Реакции: player

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