arnausd
arnausd

Reputation: 25

It's possible to execute one script when i add a new file to one folder?

I want to make a script on windows to move my files on folde1 to folder2 when i add some new file in folder 1, is it possible or at least any part of this?

Upvotes: 1

Views: 907

Answers (2)

Marcos Dimitrio
Marcos Dimitrio

Reputation: 6852

Yes, it's possible. You can use:

  • Powershell (example)
  • Batch file, with or without task scheduler (example on link above)
  • Task Scheduler and a VBScript (example)
  • VBScript and WMI __InstanceModificationEvent event (reference)
  • .NET's FileSystemWatcher (example)
  • Third party software (some suggestions)

Upvotes: 2

Ibraim Ganiev
Ibraim Ganiev

Reputation: 9390

Concept is called DirectoryWatcher/FileWatcher, you can google it by these keywords for your programming language. It's represented in most languages now.

Upvotes: 2

Related Questions