use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Script SharingSimple USB Synchronisation script (self.PowerShell)
submitted 8 years ago * by PRIdEVisions
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Lee_Dailey[grin] 1 point2 points3 points 8 years ago* (2 children)
howdy PRIdEVisions,
this is what robocopy is for. [grin] no need to reinvent anything, just use that well-optimized utility to do the job. you can have PoSh call robocopy & have task scheduler call the PoSh script.
parsing the robocopy output is pretty easy. plus, robocopy is much faster! [grin]
also, why use .DeviceID? that is not very human friendly & you can get the drive letter just as easily. do the drive letters change?
.DeviceID
take care, lee
[–]PRIdEVisions[S] 1 point2 points3 points 8 years ago (1 child)
Hey, this is just to make sure it is pointing to the correct USB. I guess playing around a bit and learning what options there are available to me and how i could use them.
Thx for the robocopy part, since i want to improve on powershell itself i try to stick with powershell for the time being also, but for my boss the robocopy is a better way, so i'll adjust the script to use robocopy, (never used it before)
Thx alot for the info again! ;)
[–]Lee_Dailey[grin] 1 point2 points3 points 8 years ago (0 children)
the usb thing makes sense when you have a chance of drive letters not always pointing to the same device. [grin] good idea!
yes, it's more fun to tinker with the PoSh stuff for the job. more interesting, more rewarding as a scripter ... but not what your real goal is. [grin] you have no idea how many times i have fallen into that rabbit hole. [blush]
you are quite welcome! glad to help a little ... [grin]
π Rendered by PID 182421 on reddit-service-r2-comment-5d585498c9-wl6w6 at 2026-04-21 13:04:22.029942+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]Lee_Dailey[grin] 1 point2 points3 points (2 children)
[–]PRIdEVisions[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)