gci c:\mystuff -file -recurse -filter *.sql | move-item n:\sql gci c:\mystuff -file -recurse -filter *.bat | move-item n:\sql
That wasn't so hard, was it? Kurt On Mon, Aug 3, 2015 at 12:57 PM, Micheal Espinola Jr < [email protected]> wrote: > There are a lot of things that vb and ps overcomplicate. > > -- > Espi > > > On Mon, Aug 3, 2015 at 12:15 PM, David McSpadden <[email protected]> wrote: > >> Seriously that simple? >> >> I am annoyed. >> >> And thank you. >> >> >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Joe Spinks >> *Sent:* Monday, August 03, 2015 3:13 PM >> >> *To:* '[email protected]' >> *Subject:* [NTSysADM] RE: Script (VB) or powershell >> >> >> >> robocopy c:\*.sql n:\sql /s /e /w:0 /r:0 /log:sqlcopy.txt /nfl /ndl >> >> robocopy c:\*.bat n:\sql /s /e /w:0 /r:0 /log:batcopy.txt /nfl /ndl >> >> >> >> >> >> *From:* [email protected] [ >> mailto:[email protected] <[email protected]>] *On >> Behalf Of *David McSpadden >> *Sent:* Monday, August 03, 2015 2:08 PM >> *To:* '[email protected]' >> *Subject:* [NTSysADM] RE: Script (VB) or powershell >> >> >> >> ? >> >> >> >> *From:* [email protected] [ >> mailto:[email protected] <[email protected]>] *On >> Behalf Of *Damien Solodow >> *Sent:* Monday, August 03, 2015 3:05 PM >> *To:* [email protected] >> *Subject:* [NTSysADM] RE: Script (VB) or powershell >> >> >> >> Could just do that with robocopy. >> >> >> >> DAMIEN SOLODOW >> >> Senior Systems Engineer >> >> 317.447.6033 (office) >> >> 317.447.6014 (fax) >> >> HARRISON COLLEGE >> >> >> >> *From:* [email protected] [ >> mailto:[email protected] <[email protected]>] *On >> Behalf Of *David McSpadden >> *Sent:* Monday, August 3, 2015 3:01 PM >> *To:* ntsysadm <[email protected]> >> *Subject:* [NTSysADM] Script (VB) or powershell >> >> >> >> Anyone have a good script to go through all directories on a volume and >> move to a network or flash drive? >> >> Specifically I want a script that can grab all .sql or .bat’s from my >> machine and move them to a network folder called N:\SQL\ ??? >> >> >> >> >> >> *David McSpadden* >> >> Systems Administrator >> >> Indiana Members Credit Union >> >> P: 317.554.8190 | F: 317.554.8106 >> >> [image: Description: imcu email icon] <http://imcu.com/> [image: >> Description: facebook email icon] >> <https://www.facebook.com/IndianaMembersCU> [image: Description: >> twitter email icon] <https://twitter.com/IndMembersCU> >> >> >> >> [image: Description: email logo] >> >> [image: mcp2] >> >> >> >> This e-mail and any files transmitted with it are property of Indiana >> Members Credit Union, are confidential, and are intended solely for the use >> of the individual or entity to whom this e-mail is addressed. If you are >> not one of the named recipient(s) or otherwise have reason to believe that >> you have received this message in error, please notify the sender and >> delete this message immediately from your computer. Any other use, >> retention, dissemination, forwarding, printing, or copying of this email is >> strictly prohibited. >> >> >> >> Please consider the environment before printing this email. >> >> This e-mail and any files transmitted with it are property of Indiana >> Members Credit Union, are confidential, and are intended solely for the use >> of the individual or entity to whom this e-mail is addressed. If you are >> not one of the named recipient(s) or otherwise have reason to believe that >> you have received this message in error, please notify the sender and >> delete this message immediately from your computer. Any other use, >> retention, dissemination, forwarding, printing, or copying of this email is >> strictly prohibited. >> >> >> >> Please consider the environment before printing this email. >> >> This e-mail and any files transmitted with it are property of Indiana >> Members Credit Union, are confidential, and are intended solely for the use >> of the individual or entity to whom this e-mail is addressed. If you are >> not one of the named recipient(s) or otherwise have reason to believe that >> you have received this message in error, please notify the sender and >> delete this message immediately from your computer. Any other use, >> retention, dissemination, forwarding, printing, or copying of this email is >> strictly prohibited. >> >> Please consider the environment before printing this email. >> > >
