Jump to content

Recommended Posts

Posted (edited)

Good day,

I have been experiencing some rather "glitchy" results with DirMove...and I would really, really appreciate some assistance here! "Pretty please...with sugar on top!"...was the vernacular of the day!!

See: Sub-Folder Contents.txt for information on this project.
• I have also provided a copy of all of the required data.

What I AM discovering, is that the remarks provided for this keyword|command is not very explicit! For example:

  Reveal hidden contents

PS: I am really trying to keep this entire process SIMPLE!!
• I will employ error checking at a later point.
• What I am asking for is a simple example of how you would approach this project.
• So, no arrays or any such thing...see the following:

#include <FileConstants.au3>
DirMove("C:\Path1\VST_PlugIns\Compressor", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\EQ", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\Reverb", "C:\Path_Copy\VST_PlugIns")

FileMove("C:\Path1\VST_PlugIns\Compressor.ini", "C:\Path_Copy\VST_PlugIns")
FileMove("C:\Path1\VST_PlugIns\EQ.ini", "C:\Path_Copy\VST_PlugIns")
FileMove("C:\Path1\VST_PlugIns\Reverb.ini", "C:\Path_Copy\VST_PlugIns")

Any assistance in this matter would be greatly appreciated!

Sub-Folder Contents.txtFetching info... Assets.7zFetching info...

Edited by mr-es335
Posted (edited)

try with

#include <FileConstants.au3>

FileMove("C:\Path1\VST_PlugIns\Compressor.ini", "C:\Path_Copy\VST_PlugIns", $FC_CREATEPATH)
FileMove("C:\Path1\VST_PlugIns\EQ.ini", "C:\Path_Copy\VST_PlugIns", $FC_CREATEPATH)
FileMove("C:\Path1\VST_PlugIns\Reverb.ini", "C:\Path_Copy\VST_PlugIns", $FC_CREATEPATH)

DirMove("C:\Path1\VST_PlugIns\Compressor", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\EQ", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\Reverb", "C:\Path_Copy\VST_PlugIns")

and if you have a problem, check the attributes of .dll files, maybe it's better to copy and delete?

Edited by ioa747

I know that I know nothing

Posted (edited)

ioa747,

Great point! Saves a step-or-two! Thanks for this!

But, I am thinking that I really should have left out the FileMove, as it is DirMove that I attempting to get my head around.

PS: I wonder why a $FC_CREATEPATH flag was not provided with DirMove?

Here is what I have gleaned thus far:

  Reveal hidden contents

 

Edited by mr-es335
Update notes
Posted

it could be

#include <FileConstants.au3>
If Not FileExists("C:\Path_Copy\VST_PlugIns") Then DirCreate("C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\Compressor", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\EQ", "C:\Path_Copy\VST_PlugIns")
DirMove("C:\Path1\VST_PlugIns\Reverb", "C:\Path_Copy\VST_PlugIns")

FileMove("C:\Path1\VST_PlugIns\Compressor.ini", "C:\Path_Copy\VST_PlugIns")
FileMove("C:\Path1\VST_PlugIns\EQ.ini", "C:\Path_Copy\VST_PlugIns")
FileMove("C:\Path1\VST_PlugIns\Reverb.ini", "C:\Path_Copy\VST_PlugIns")

 

I know that I know nothing

Posted (edited)

ioa747,

Great idea! Why did I not think of this?? Duh!! "Sweet and concise!"...at least to me!

For whatever reason,l I have what I refer to as "the order of precedence"....with this precedence being" files-then-folders. Thus, your earlier example would be more apropos.

Thanks again!!

PS: Did you have a peep at my notes? I would appreciate your comments.

Edited by mr-es335
Posted (edited)

ioa747,

I just tested both examples and neither are working? Was this to be expected?

The first example 1) moves the .ini files, 2) creates a VST_PlugIns file, and 3) does not copy the folders.

The second example 1) creates the VST_PlugIns destination folder, 2) moves the .ini files to this folder, and 3) does not copy the folders.

This does work:

#include <FileConstants.au3>

FileMove("C:\Path1\VST_PlugIns\Compressor.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE + $FC_CREATEPATH)
FileMove("C:\Path1\VST_PlugIns\EQ.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE + $FC_CREATEPATH)
FileMove("C:\Path1\VST_PlugIns\Reverb.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE + $FC_CREATEPATH)

DirMove("C:\Path1\VST_PlugIns\Compressor", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
DirMove("C:\Path1\VST_PlugIns\EQ", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
DirMove("C:\Path1\VST_PlugIns\Reverb", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)

...as does this...

#include <FileConstants.au3>
If Not FileExists("C:\Path_Copy\VST_PlugIns") Then DirCreate("C:\Path_Copy\VST_PlugIns")

DirMove("C:\Path1\VST_PlugIns\Compressor", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
DirMove("C:\Path1\VST_PlugIns\EQ", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
DirMove("C:\Path1\VST_PlugIns\Reverb", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)

FileMove("C:\Path1\VST_PlugIns\Compressor.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
FileMove("C:\Path1\VST_PlugIns\EQ.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)
FileMove("C:\Path1\VST_PlugIns\Reverb.ini", "C:\Path_Copy\VST_PlugIns", $FC_OVERWRITE)

 

Edited by mr-es335
Posted (edited)

... and if you have a problem, check the attributes of .dll files and folders, maybe it's better to copy and delete?

else you should remove the 'READONLY' with the FileSetAttrib()

Edited by ioa747

I know that I know nothing

Posted (edited)

I always check the file attributes and all are OK!

The following might be interest however...

  Reveal hidden contents

 

Edited by mr-es335

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
  • Recently Browsing   0 members

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