How to read the contents of a folder on a web server via ftp
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to read the contents of a folder on a web server via
Thank you all. Your suggestions didn't change anything. The program behaves exactly as before. Copies and deletes some files and hangs. How to use DC_FileDel() I do not understand.
Re: How to read the contents of a folder on a web server via
Where does it hang? During the copy or the delete?
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to read the contents of a folder on a web server via
Hangs during deleting. Deletes multiple files seems to be OK as expected, but then hangs. I had thought that this might be due to cache or antivirus. When attempting to remove the latter is not a remote file in the file Manager I get a message that it is protected from deletion. But the attributes he is normal, ie it is simply a zipped file. Perhaps he remains a busy system.
PS
1. Now disabled the antivirus (AVIRA) - is not affected
2. Waited a long time (about 15 minutes), thought it might "come off". But no, hanging securely. Interrupt is possible only through the task Manager.
PS
1. Now disabled the antivirus (AVIRA) - is not affected
2. Waited a long time (about 15 minutes), thought it might "come off". But no, hanging securely. Interrupt is possible only through the task Manager.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to read the contents of a folder on a web server via
Everything turned out fine so:
Although I did not understand what was not working previous versions.
Thank you for your support and useful and pleasant communication!
Code: Select all
FOR j=1 TO LEN(aFileName)
Name_SS = aFileName[j]
Name_DD = Disk_dir+"\AID_DATA\Inp_data\"+aFileName[j]
IF aFileName[j] = '_2_3_2_2.arx' .OR. aFileName[j] = '_2_3_2_3.arx'
COPY FILE (Name_SS) TO (Name_DD)
ELSE
RenameFile(Name_SS, Name_DD)
ENDIF
NEXT
Thank you for your support and useful and pleasant communication!