Sign in to follow this  
Followers 0
bobheart

Is this right ?

4 posts in this topic

DirCopy("C:\Documents and Settings\" & @UserProfileDir & "\Application Data\Thunderbird","C:\backup", 1)

Share this post


Link to post
Share on other sites



Instead of telling you what you did wrong, I am going to show you how to debug because you have yet to show that you have any logical ability whatsoever.

Before posting this thread you should have tried a couple of things, first of all try seperating the problem logically to make it smaller and easier to follow:

$SourceDir = "C:\Documents and Settings\" & @UserProfileDir & "\Application Data\Thunderbird"
$DestDir = "C:\backup"

DirCopy($SourceDir, $DestDir, 1)

This will allow you to look at each part of the problem seperatly and take each piece at a time. It gives you a chance to fix logical errors. If you still do not get the results that you desire, try adding debugging MsgBox's to see the contents of the variables before they get processed.

$SourceDir = "C:\Documents and Settings\" & @UserProfileDir & "\Application Data\Thunderbird"
$DestDir = "C:\backup"
MsgBox(0,"","Source: " & $SourceDir & @CRLF & "Dest: " & $DestDir)
DirCopy($SourceDir, $DestDir, 1)

Using this sample code you will find that $SourceDir contains (on my PC):

"C:\Documents and Settings\E:\Documents and Settings\Matt\Application Data\Thunderbird"

I do not believe this is the intended output. Now, you don't need me to tell you how to fix this. Be self relieant to write better code and stop wasting space on the forum with worthless threads.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok fine I'm bleeding out of here so you wont have to worry about my asking .

Edited by Larry

Share this post


Link to post
Share on other sites

You use thunderbird too? I just discovered it a few days ago. Another one of Mozilla's wonderful features.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0