Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

Remote File Delete or Remotely executing a command?

$
0
0

This has obviously been covered in other topics but nothing I'm sort of lost on how to phrase the question.

Need Guru help - Windows 2008 R2

The issue is, I have about 100 folder with 4000 files to delete every night from a on a remote server.  An event happens that triggers a SQL job and that triggers the action to delete the files using the file share (it cannot be a scheduled task).   It currently works looping through a repetitive loop deleting 1 file at a time.   No, we cannot simply delete the folder for whatever reason...    To loop through 4000 files takes hours.  I want something to do this in seconds.   Currently I do this manually every night before bed, it at least reduces the # of files to around a thousand by the time the SQL job runs.

Deleting the files locally from the server goes much much faster.

How can we delete thousands of files on a remote server in seconds rather than hours?   We'd like to kick off a batchfile on the machine hosting the files, or something similar.  I don't think there is a way of making a server execute something on demand - that is breaking some sort of security model, right?

I've considered enabling the telnet server, but there must be a better way of doing this.


Dane!


Viewing all articles
Browse latest Browse all 1766

Trending Articles