Modify

Opened 15 years ago

Closed 14 years ago

#1999 closed Bug (No Bug)

DirCopy and DirMove have some bugs

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

DirCopy - When I copy a dir to another place like this:

DirCopy("vir_sig", "%HOMEDRIVE%\", 1)

Instead of copy the vir_sig folder it copy the contents of the vir_sig folder to %HOMEDRIVE%\
But using DirCopy("vir_sig", "%HOMEDRIVE%\vir_sig", 1) works

DirMove - When I move a folder using the overwrite option to another folder that has a folder with the same name and, instead of overwriting, it moves the folder inside the destination folder, ex:

DirMove("%HOMEDRIVE%\vir_sig", $forticlient_path & "FortiClient", 1)

will make the folder ...FortiClient\vir_sig\vir_sig where the last vir_sig is the moved folder.
To solve this I had to delete the already existing folder:

DirRemove($forticlient_path & "FortiClient\vir_sig", 1)
DirMove("%HOMEDRIVE%\vir_sig", $forticlient_path & "FortiClient", 1)

Attachments (0)

Change History (1)

comment:1 by Valik, 14 years ago

Resolution: No Bug
Status: newclosed

So you reported a bug about documented behavior. Good job!

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.