Author Topic: How to make generated HTML overwrite old files?  (Read 6178 times)

0 Members and 1 Guest are viewing this topic.

Offline MiX

  • *
  • Posts: 1
How to make generated HTML overwrite old files?
« on: April 28, 2004, 01:58:37 PM »
Доброе время суток.. я плохо  знаю английский язык но всё же надеюсь мне помогут..
Как бы зделать чтобы файлы генерировались в один и тотже каталог заменяя(!) старые файлы... То что он для кадого обновления создаёт новую папку это не очень то удобно.
 :(  Буду очень благодарен
Заранее спасибо.

► SLF - Server List Forum

How to make generated HTML overwrite old files?
« on: April 28, 2004, 01:58:37 PM »

Offline piramida

  • Administrator
  • *****
  • Posts: 1070
    • aGSM.Net
How to make generated HTML overwrite old files?
« Reply #1 on: April 29, 2004, 07:11:32 AM »
Нужно отредактировать do_net/do_lan .bat файлы, которые создают новые папки. Или просто убрать их.

---
You must edit or remove do_net/do_lan .bat files, which are creating new subfolders based on refresh time.

Offline tr7

  • *
  • Posts: 1
How to make generated HTML overwrite old files?
« Reply #2 on: July 19, 2004, 05:37:43 AM »
piramida, could u explain what must be included in the do_lan/do_net.bat . For example i'm using agsm for lan. And i want the output to overwrite the older lan.html and not save as a new folder .

@echo off

mkdir %1 > nul

mkdir %1\lan > nul
move ls*.* %1\lan > nul
move lan.html %1 > nul

above is the default value when i want to edit do_lan.bat
i'm really dunno what should i replace . help me pls :(  

► SLF - Server List Forum

How to make generated HTML overwrite old files?
« Reply #2 on: July 19, 2004, 05:37:43 AM »

Offline piramida

  • Administrator
  • *****
  • Posts: 1070
    • aGSM.Net
How to make generated HTML overwrite old files?
« Reply #3 on: July 19, 2004, 03:58:14 PM »
if you just want the output to overwirte old files, remove the do_lan.bat file (just delete it). the only purpose it serves is to create new directory based on date and move stuff there.

Offline achiever

  • *
  • Posts: 10
Re: How to make generated HTML overwrite old files?
« Reply #4 on: June 13, 2007, 11:54:39 AM »
i m getting error when i delete my do_lan.bat file

shellExecute do_lan.bat ==2

plzz help.
thanks,
achiever.

Offline piramida

  • Administrator
  • *****
  • Posts: 1070
    • aGSM.Net
Re: How to make generated HTML overwrite old files?
« Reply #5 on: June 13, 2007, 02:25:24 PM »
Hm, and if you create an empty file? Right, it tries to execute do_lan.bat but it should gracefully recover... We'll look into it.

Offline achiever

  • *
  • Posts: 10
Re: How to make generated HTML overwrite old files?
« Reply #6 on: June 18, 2007, 08:20:14 AM »
i have changed the do_lan.bat file and left only @echo off as its content and now its working.
i.e it overwrites the html files.

thanks for ur help,
achiever.

► SLF - Server List Forum

Re: How to make generated HTML overwrite old files?
« Reply #6 on: June 18, 2007, 08:20:14 AM »