Jump to content

Recommended Posts

  • Moderators
Posted

Fran,

The file copying code produces the same results for me as it did before, so there is no reason I can see why the files no longer copy. ;)

Have you changed the folder structure to match the new code? You were copying the files to:

"@ScriptDir & "\config\mphoto_exe\"&GUICtrlRead($theme[$i])&" - Mphoto.exe"

and you are now using:

"@ScriptDir & "\config\mphoto_exe\PHOTOBOOKS\" & GUICtrlRead($theme[$i]) & " - Mphoto.exe"

Do you need to use the "8 = Create destination directory structure if it doesn't exist" flag? :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

My PC is acting up. I think that might be the problem

I just added the flag out of pure frustration - :)

I'm reformatting my pc tonight ;) ... hold thumbs ;)

Posted (edited)

@M23

...Still not working.

I've added a message box to the code, and the paths echo 100%. Why won't it copy though? ;)

The directory structure is correct.

Fran

For $i = 0 To $iMax - 1
                    ;Photobooks copy files
                    If $change[$i] = 1 Then
                        $srcFile = GUICtrlRead($input[$i])
                        $destFile = @ScriptDir & "\config\mphoto_exe\PHOTOBOOKS\" & GUICtrlRead($theme[$i]) & " - Mphoto.exe"
                        MsgBox(4096, "", "Copy from:" & @CRLF & $srcFile & @CRLF & @CRLF & "to:" & @CRLF & $destFile)
                        FileCopy($srcFile, $destFile, 1)
                    EndIf
                Next

I'm going off my rocket a bit. :)

Edited by Fran
  • Moderators
Posted

Fran,

Are you absolutely sure it copied the files before? :)

Another thought - you have spaces in the $destfile name:

$destFile = @ScriptDir & "\config\mphoto_exe\PHOTOBOOKS\" & GUICtrlRead($theme[$i]) & " - Mphoto.exe"

Perhaps if you were to enclose the whole name in double quotes like this:

$destFile = '"' & @ScriptDir & '\config\mphoto_exe\PHOTOBOOKS\' & GUICtrlRead($theme[$i]) & ' - Mphoto.exe' & '"'

Other than that I am right out of ideas too - sorry. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (edited)

I figured out what the problem was!! ;)

There wasn't enough disk space. :)

How crazy is that? :P

Anyway... all set and working 100% now. And my pc feels a lot better after the format as well o:)

Enjoy your weekend!

;)

Fran

Edited by Fran
  • Moderators
Posted

Fran,

I thought that problem went out with floppy disks! :)

You must watch an awful lot of movies! ;)

Glad you got it sorted. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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...