Script help
I an new to writing scripts and I desperately need some help. I will try to explain what I need done. I am needing to copy a file to another location. This is what I came up with
@echo off
xcopy g:\osi\rpts\20110809\100726\ef_pbgen.pbf \\mpsqbt\c$
I am trying to copy ef_pbgen.pbf to \\mspqbt\c$ the problem I have is this file is created everyday and it goes into a folder that changes everyday to the current date. Withing that folder are several folders that gets generated everyday called queue
folders. They are named 100725, 100726. etc...
I need to know how to search for the latest date folder and then within that folder through all the queue number folders to find my file.
If anyone can help me, thank you.
August 10th, 2011 5:23am
This would be better off posted in the Official Scripting Guys forum. Please ask your question there. Here is a link:
http://social.technet.microsoft.com/Forums/en/ITCG/threadsIf you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer".
Rich Prescott | MCITP, MCTS, MCP
Blog | Twitter:
@Arposh |
Powershell Client System Administration tool
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2011 5:40am


