Jump to content

DirCopy doesn't work with Ext2


Recommended Posts

I am confused, DirCopy("Z:\path1","Z:\path2") don't do anything (Not working), and returns 0

FileExist("Z:\path1") returns 1

DirCreate("Z:\path2\something") Creates directory without problems

FileCopy("Z:\path1","]Z:\path2") Works perfectly

But DirCopy("C:\path1","C:\path2") Works perfectly.

C:\ - NTFS

Z:\ - Ext2

Edited by E1M1

edited

Link to comment
Share on other sites

I am confused, DirCopy("Z:\path1","Z:\path2") don't do anything (Not working), and returns 0

FileExist("Z:\path1") returns 1

DirCreate("Z:\path2\something") Creates directory without problems

FileCopy("Z:\path1","]Z:\path2") Works perfectly

But DirCopy("C:\path1","C:\path2") Works perfectly.

C:\ - NTFS

Z:\ - Ext2

And how are you accessing the EXT2 partition? Is this CIFS to SAMBA, or NFS, or ...?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

click on link on my previous post, an you will see,but I can post link again :)

http://www.fs-driver.org/

If u look closely u see that Z:\ - Ext2 is link

Got it. Try this same method from both VBScript and inside AutoIt, to see if the results differ:

VBScript:

Const OverWriteFiles = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "Z:\Path1" , "Z:\Path2" , OverWriteFiles

AutoIt:

Global Const $OverWriteFiles = -1
$objFSO = ObjCreate("Scripting.FileSystemObject")
$objFSO.CopyFolder("Z:\Path1" , "Z:\Path2", $OverWriteFiles)

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

They both work perfectly

I asked, and the native DirCopy() uses a shell vice scripting obj. So try again with these two, again to see if they differ when accessing EXT2 via your driver:

VBScript:

SourceDir = "Z:\Path1"
Set objShell = CreateObject("Shell.Application")
Set objTarget = objShell.NameSpace("Z:\Path2")
objTarget.CopyHere SourceDir

AutoIt:

$SourceDir = "Z:\Path1"
$objShell = ObjCreate("Shell.Application")
$objTarget = $objShell.NameSpace("Z:\Path2")
$objTarget.CopyHere($SourceDir)

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...