delete remote files in special situations

Advertisement

Gwynbleidd
Joined:
Posts:
2

delete remote files in special situations

hey guys,

im totally stuck on this :(

i have a script which:
1) connect to remote supplier.
2) synchronize remote files and sub folders from this supplier to my local windows folder.

after i sync all files, i have a system that take the files from the local windows folder and delete them.

this cause the following issue, the script run every few seconds and notice that the local folder is empty and re-synchronize.
thus i get the same file over and over again.

is there a way to delete remote files after sync?
i swear i couldnt find a solution for this, only a powershell script which i couldnt get to work.

please help :(

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: delete remote files in special situations

Gwynbleidd wrote:

i swear i couldnt find a solution for this, only a powershell script which i couldnt get to work.
OK, so you did find a solution for this.
So maybe you should ask a question about your problem with the script you have found.

Reply with quote

Gwynbleidd
Joined:
Posts:
2

Re: delete remote files in special situations

martin wrote:

Gwynbleidd wrote:

i swear i couldnt find a solution for this, only a powershell script which i couldnt get to work.
OK, so you did find a solution for this.
So maybe you should ask a question about your problem with the script you have found.

im not an expert in powershell so i couldnt get it to work + i rather use the script method.

in the end i used put + get for each sub folder and exclude the folders in the root :(

Reply with quote

Advertisement

You can post new topics in this forum