• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Permanent Program moving files to different folders

Hello Experts,

I need to create a program that moves automatically files from a certain folder to other folders, I mean, every time that I SEND a file into a concrete folder i need a program permanently running that checks the content of the main folder and copy all files existing there into other dependant folders, how can I do it? do I need a "Windows Service"? How can I manage that

Thanks
0
diegohugo
Asked:
diegohugo
1 Solution
 
TDSnetCommented:
Hi,

This could be quite easy using a dotNET language like VB.NET or C#.  What programming language are you looking at using..?

Cheers,
Jack
0
 
darkpriestCommented:
If your going to use VB.NET


The best way to go about it, is Import.System.IO

using the namespaces

File and Directory

as far as copying there is no actual method within VB.NET that ive seen, but its quiet easy to do with manipulating and copying each of the files.  Just check through those namespace commands and it'll fill you in.

Directory.Exists Directory.Move Files.GetFileEntries Directory.GetFireEntries
etc...

Just some of the VB.NET commands you'd be looking at.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now