#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default ME, BACKUP

Hi,

What is the command to copy everything in the folder C:\2009 to a drive G:
(all subfolders should be included too)
While copying, it should flash the message €śCopying €¦€ť on the screen without
showing the actual files being copied. It should be done in the background.
And when it is finished, it should say €śBackup complete€ť.
The messages should be larger than normal and Bold.

Berj

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ME, BACKUP

Not what you wanted...

But there are somethings that I don't use excel for.

I'd use windows explorer and just copy the folder to the new location.

Berj wrote:

Hi,

What is the command to copy everything in the folder C:\2009 to a drive G:
(all subfolders should be included too)
While copying, it should flash the message €śCopying €¦€ť on the screen without
showing the actual files being copied. It should be done in the background.
And when it is finished, it should say €śBackup complete€ť.
The messages should be larger than normal and Bold.

Berj


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default ME, BACKUP

I know pal.

I just want to use it in a Macro.
After doing some steps, it has to copy some files as I click on a macro
button.
By the way. This is something I am preparing for other people who know
nothing about copying and they get lost in them, so I just want to prepare a
button for them, so that when they click, it does everything for them.



"Dave Peterson" wrote:

Not what you wanted...

But there are somethings that I don't use excel for.

I'd use windows explorer and just copy the folder to the new location.

Berj wrote:

Hi,

What is the command to copy everything in the folder C:\2009 to a drive G:
(all subfolders should be included too)
While copying, it should flash the message €œCopying €¦â‚¬Âť on the screen without
showing the actual files being copied. It should be done in the background.
And when it is finished, it should say €œBackup complete€.
The messages should be larger than normal and Bold.

Berj


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ME, BACKUP

And to add to something that I wouldn't do <bg...

If you want to make sure that files with the same name are overwritten:

FSO.CopyFolder Source:=sFrom, Destination:=sTo, overwritefiles:=True



Dana DeLouis wrote:

What is the command to copy everything in the folder C:\2009 to a drive G:


Would this work?

Sub Demo()
Dim FSO As Object
Const sFrom = "C:\2009\"
Const sTo = "G:\MyBackup\"

Set FSO = CreateObject("Scripting.FileSystemObject")

FSO.CopyFolder sFrom, sTo
End Sub

--
HTH :)
Dana DeLouis

"Berj" wrote in message ...
I know pal.

I just want to use it in a Macro.
After doing some steps, it has to copy some files as I click on a macro
button.
By the way. This is something I am preparing for other people who know
nothing about copying and they get lost in them, so I just want to prepare a
button for them, so that when they click, it does everything for them.



"Dave Peterson" wrote:

Not what you wanted...

But there are somethings that I don't use excel for.

I'd use windows explorer and just copy the folder to the new location.

Berj wrote:

Hi,

What is the command to copy everything in the folder C:\2009 to a drive G:
(all subfolders should be included too)
While copying, it should flash the message €œCopying €¦â‚¬Âť on the screen without
showing the actual files being copied. It should be done in the background.
And when it is finished, it should say €œBackup complete€.
The messages should be larger than normal and Bold.

Berj

--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup sedgy Excel Discussion (Misc queries) 5 February 6th 09 06:13 PM
Backup JT Excel Discussion (Misc queries) 2 October 10th 08 12:10 AM
backup?? KDSarah1104 Excel Discussion (Misc queries) 3 July 18th 08 01:51 AM
Backup Alek Excel Discussion (Misc queries) 1 January 8th 06 01:23 AM
backup Mark New Users to Excel 4 April 5th 05 04:24 PM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"