Windows Copy Folders Quietly

  • devilwood
  • Silver Member
  • Silver Member
  • User avatar
  • Joined: Nov 18, 2007
  • Posts: 429
  • Status: Offline

Post January 6th, 2011, 1:15 pm

Do all Windows backups/copies all have to display the cmd prompt?

I used to do quite a bit of batch work and so I needed a backup script and thought it would work nicely to just copy some files from my local disk to my network share. It does but the command prompt comes up and while I use the /Q option the best I could do to run that script unobtrusively was to add a line of code to task it. I found some tools that required to copy over to the WINDOWS folder and then some other installing which I guess I didn't do right cause it didn't work. I searched for this but have yet to find an easy way to hide the command prompt when running a bat file.

So, I knew of an XP Sync powertoy which I installed and configured to run as a scheduled task. However, it too brings up the cmd prompt when it runs. What's the deal? Is there a windows xp copy tool or language that can run in the background?


Some users could have a lot of data which could take a little while to copy and I don't want the prompt in their way as they continue to work.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 6th, 2011, 1:15 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post January 7th, 2011, 8:07 am

You should be able to with Powershell 2. It introduced PSJob which can run powershell jobs asynchronously in the background.

I haven't used Powershell to a large degree so I can't give you a specific how to, but that should lead you in the direction you want to go. The powershell commandlet for copy is copy-item
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • devilwood
  • Silver Member
  • Silver Member
  • User avatar
  • Joined: Nov 18, 2007
  • Posts: 429
  • Status: Offline

Post January 10th, 2011, 2:22 pm

Thanks. That's the type of info I'm looking for.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 137 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.