Jump to content
Sign in to follow this  

not copying the folder contents

Recommended Posts

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 lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com 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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...