E1M1 Posted July 16, 2009 Share Posted July 16, 2009 (edited) I am confused, DirCopy("Z:\path1","Z:\path2") don't do anything (Not working), and returns 0FileExist("Z:\path1") returns 1DirCreate("Z:\path2\something") Creates directory without problemsFileCopy("Z:\path1","]Z:\path2") Works perfectlyBut DirCopy("C:\path1","C:\path2") Works perfectly.C:\ - NTFSZ:\ - Ext2 Edited July 16, 2009 by E1M1 edited Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 16, 2009 Share Posted July 16, 2009 I am confused, DirCopy("Z:\path1","Z:\path2") don't do anything (Not working), and returns 0FileExist("Z:\path1") returns 1DirCreate("Z:\path2\something") Creates directory without problemsFileCopy("Z:\path1","]Z:\path2") Works perfectlyBut DirCopy("C:\path1","C:\path2") Works perfectly.C:\ - NTFSZ:\ - Ext2And 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 More sharing options...
E1M1 Posted July 16, 2009 Author Share Posted July 16, 2009 (edited) 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 Edited July 16, 2009 by E1M1 edited Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 16, 2009 Share Posted July 16, 2009 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 More sharing options...
E1M1 Posted July 16, 2009 Author Share Posted July 16, 2009 They both work perfectly edited Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 16, 2009 Share Posted July 16, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now