Unzip Last file, move it, and Convert it from *.csv to *.xls

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mel
Posts: 1
Joined: 31 Jul 2015 11:59

Unzip Last file, move it, and Convert it from *.csv to *.xls

#1 Post by mel » 31 Jul 2015 12:30

Hello everyone,

I've been looking everywhere for a code that works for me, but I have no success, could you help me a little?

I would love to understand this code but right now I urge provide solution to something, would appreciate just a suggestion of where I can find documentation to develop what I'm looking for.

My problem is:

every day a compressed .zip file is downloaded to C: \ DUMP, I have many such files in that folder, but I need to capture the last one is downloaded, unpacked and move to the C: \ Dump \ ExtractedFile but not creating a new folder, but only the file.

In addition I need to delete previously existing files in C: \ Dump \ ExtractedFile and have only the last file.

And finally, this file is CSV, could somehow convert it to Excel 97-2000?

Thank you very much in advance and have a great day,

Sincerely,

Mel.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Unzip Last file, move it, and Convert it from *.csv to *

#2 Post by Squashman » 31 Jul 2015 14:16

Do you have excel and an unzipping program installed on your computer?

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Unzip Last file, move it, and Convert it from *.csv to *

#3 Post by ShadowThief » 31 Jul 2015 23:18

.xls is a proprietary file type and despite batch and Excel being both made by Microsoft, there's not much they can do to interact with each other.

On the other hand, you can use a VBA macro to do everything you are asking for, and then you only have to use Excel.

Post Reply