![]() |
![]() |
||||||
|
|||||||
| Tags: copy, extension, files, folder, local |
![]() |
|
|||
|
Hi All,
I'm really a newbie in extension making process and confused. I need to make an extension so that when it is executed, the files would be copied from $dreamweaver/Configuration/ (the folder to put the files when the extension is installed) to the local site folder (where we build the new site). Some questions regarding this: [num]1. Is this a possible thing to do? I won't need the user to input something in order to make this work, just click a menu on the Insert or Commands and all the files will be copied.[/num] [num]2. Another confusion is that, when I was trying to install the extension, it didn't display any error and dw says that the extension is installed. Yet, the menu that I created doesn't do anything when clicked, and the file doesn't exist on the folder I intended to be the destination in $dreamweaver/Configuration/. Any clue on this?[/num] I would appreciate any help, as it is getting really confusing to me. ![]() Regards, |
| Sponsored Links |
|
|||
|
var ImageFolder = theForm.ImageFolder.value;
... if(ImageFolder != "") { var newURL1 = dreamweaver.getSiteRoot()+MM_findObj('ImageFolder' ).value+"*.gif"; var fileURL1 = dreamweaver.getConfigurationPath()+"/Shared/***/im age/*.gif"; DWfile.copy(fileURL1, newURL1); } The *.gif is a picture and *** is a folder you can create the picture and the folder with mxi-code. ImageFolder is a Userinput. Sorry my English is not so good! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise