for each and file system task
i have a directory where you have numerous files
i would only like to move certain files which have a pattern.
for example, lets say i have some files like this
1234_dba_guru.zip
2341_dba_mentor.zip
9182_dba_student.zip
124_developer_guru.zip
231_developer_nothing_zip etc
if you see here, there is a certain pattern for the first 3 files
how should i let know to the for each loop about that pattern
should i write *._dba_.*
or somethhing else?
Eagerly waiting for your replies :)Thanks
October 27th, 2010 8:54am
That 'mask' would probably won't work as you have the _.* at the end, when it should be _*.* . Also, isn't the ? a single place holder, so if you KNOW that the first section must be 4 characters, then you might also use
????_dba_* or even ????_dba_*.zipTodd C - MSCTS SQL Server 2005 - Please mark posts as answered where appropriate.
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 9:00am
*_dba_*
check with above one...
Let us TRY this |
My Blog :: http://quest4gen.blogspot.com/
October 27th, 2010 9:00am
Another Question for you :) in the same thread :)
how would the variable look like?
is it like
\\share\sample
or
\\\\share\\\sample
Thanks
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 9:16am