1.

Solve : Help Please: move files with variable names?

Answer»

I'm a total newbie to batch files so my apologies upfront.

I'm trying to take files that contain a specific name and move them to a new folder.

Scenario: I have an outlook rule that saves attachments from a specific person in a certain folder.

I would like to take those files and move them to different folders.

I know I'll NEED an if statement in the commands.

example: two files in one folder  bob.txt and bill.txt  I want to move the first file to folder a and the second file to folder B.

My QUESTIONS:
what do i need to put into a batch file to make that happen?
what do i need to do to make that occur everytime I start outlook?

a BIG thanks in ADVANCE,

Jason Quote

Scenario: I have an outlook rule that saves attachments from a specific person in a certain folder.

I would like to take those files and move them to different folders.

Can you not save Bob's files directly to Folder A and Bill's files directly to Folder B? Seems easier to change the rule rather than getting batch code involved.

If you do need some code, does it have to be batch language? , Outlook is written for Windows, not the command shell; might be easier to use a Windows tool. Is there some sort of NAMING convention so Bill's and Bob's attachments can be separated?

The more details you provide, the better we can serve you.


Discussion

No Comment Found