PC Review


Reply
Thread Tools Rate Thread

cmd file to backup other files in the background

 
 
Some Dude
Guest
Posts: n/a
 
      28th Jun 2006
I need a batch file / cmd file that I can run as a scheduled task to back up
files from a folder on my C drive to my server drive. I run a screen scraper
and I don't know of any way to do this without a window popping up on the
screen and messing up my screen scraper. The screen scraper doesn't run all
day but it's enough to be a problem. Can someone tell me of a way to make my
cmd file run without popping up in a window?


 
Reply With Quote
 
 
 
 
Michael Bednarek
Guest
Posts: n/a
 
      30th Jun 2006
On Wed, 28 Jun 2006 07:18:46 -0500, "Some Dude" wrote in
microsoft.public.win2000.cmdprompt.admin:

>I need a batch file / cmd file that I can run as a scheduled task to back up
>files from a folder on my C drive to my server drive. I run a screen scraper
>and I don't know of any way to do this without a window popping up on the
>screen and messing up my screen scraper. The screen scraper doesn't run all
>day but it's enough to be a problem. Can someone tell me of a way to make my
>cmd file run without popping up in a window?


Doesn't this run the cmd file minimised:
START "" /MIN cmd /c d:\dir\batch.cmd

However, if you use NTBACKUP to perform the backup, it will always pop
up on the screen. Use a command line method instead, like copy, xcopy,
robocopy.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 
Reply With Quote
 
New Member
Join Date: Jul 2006
Location: kuwait
Posts: 2
 
      25th Jul 2006
Set objBrowser = CreateObject ("InternetExplorer.Application")
With objBrowser
.Navigate "about:blank"
.ToolBar = 0
.StatusBar = 0
.Width = 600
.Height = 100
.Visible = 1
.Document.Title = "Backup in progress - please be patient"
.Document.Body.InnerHTML = "My Documents are currently being backed up." & vbCr & "This may take several minutes to complete."
End With

'Do the copy routine here, then...

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("cmd /c xcopy C:\MyDocu~1\*.* i:\Bawa /s/c/d/k/y "),0,True


objBrowser.Document.Body.InnerHTML = "Your My Documents Backup is now complete."

WScript.Sleep 2000 'Value in Miliseconds

objBrowser.Quit 'Close Browser Window

WScript.Quit



'u can delete the browser message and well this is not a scheduled backup. i have put this script in the group policy or on the user startus folder
 
Reply With Quote
 
New Member
Join Date: Jul 2006
Location: kuwait
Posts: 2
 
      25th Jul 2006
Set objBrowser = CreateObject ("InternetExplorer.Application")
With objBrowser
.Navigate "about:blank"
.ToolBar = 0
.StatusBar = 0
.Width = 600
.Height = 100
.Visible = 1
.Document.Title = "Backup in progress - please be patient"
.Document.Body.InnerHTML = "My Documents are currently being backed up." & vbCr & "This may take several minutes to complete."
End With

'Do the copy routine here, then...

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("cmd /c xcopy C:\MyDocu~1\*.* i:\Bawa /s/c/d/k/y "),0,True


objBrowser.Document.Body.InnerHTML = "Your My Documents Backup is now complete."

WScript.Sleep 2000 'Value in Miliseconds

objBrowser.Quit 'Close Browser Window

WScript.Quit



'u can delete the browser message and well this is not a scheduled backup. i have put this script in the group policy or on the user startus folder
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista File Backup - Backup Files From A Share Regardless Of Locati =?Utf-8?B?RGVsbCBCb3k=?= Windows Vista General Discussion 9 18th Sep 2007 12:59 AM
How do I remove files from a .bkf backup file? =?Utf-8?B?SWFu?= Windows XP General 2 25th Oct 2006 04:59 PM
A macro to open files, refresh data, and close file in background? denisecook Microsoft Excel Worksheet Functions 3 5th May 2004 12:20 PM
Break Zip file into 2 files for backup of computer, how? Josh Collins Windows XP General 5 26th Sep 2003 09:33 PM
How to restore files from a somewhat corrupted backup file under Win XP? Hubert Earl Windows XP Basics 0 7th Aug 2003 04:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 PM.