troubleshooting Question

bat or vbs Script to move files based on file name...

Avatar of epicazo
epicazoFlag for United States of America asked on
Operating SystemsWindows XPVB Script
16 Comments1 Solution1528 ViewsLast Modified:
Hello experts.

I am wondering if it's possible to get the first 8 characters of file and move the files to a folder name matching  8 char prefix.  I guess it would first check to see of folder exist, if not then create one.

Here is an example:

--- When I run my script -----

The above files will be moved to the following

 ---> 20110830_5474796.PDF
 ---> 20110830_5474796.TIFF
 ---> 20110831-5212510.TIFF

Thanks for your expertise...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 16 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros