Sign in to follow this  
Followers 0

not copying the folder contents

1 post in this topic

#1 ·  Posted (edited)

I added a new registry key to HKEY_CLASSES_ROOT\Folder\shell and I called it "Install phpBB MOD". the "command" for that key is: "C:\mod.exe" "%1"

It runs the program exactly as it should.

here is C:\mod.exe:

If $cmdline[0] < 1 then Exit
#include <File.au3>
Global $trash, $filename
$source = $cmdline[1]
$test = _PathSplit ($source, $trash, $trash, $filename, $trash)
$dest = "C:\Fast\www\phpbb\admin\mods\"&$filename&"\"
MsgBox (64, "Install phpBB MOD", "MOD name: "&$filename&@CRLF&"Destination: "&$dest)
$copy = FileCopy ($source&"\*.*", $dest, 9)
If $copy = 0 Then
    MsgBox (48, "Failed", "The MOD failed to copy.")
    MsgBox (64, "Success", "MOD copied successfully.")

It does create the new folder in C:\Fast\www\phpbb\admin\mods\, BUT, the folder's contents don't come with it. What am I doing wrong here?

Edited by theguy0000

The cake is a is currentlyUP is currentlyUP all other * sites are DOWN

Share this post

Link to post
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
Sign in to follow this  
Followers 0