View Full Version : Images in a folder to web via mel?
04-05-2006, 05:00 AM
I wrote a script that does the following: As far as I´m satisfied with a test rendering I execute it and it grabs the system date and the file name, compose a name with those and saves a jpg on an specific folder.
I´d like to implement something that could scan this specific folder and send the pictures within to my webspace. So I can have, for example, a web page dynamically updated, with a wip section, or my clients to check how the job is going.
Can anybody help me with that?
04-05-2006, 07:39 AM
Those are system commands, outside the scope of MEL. What operating system are you using?
04-05-2006, 04:37 PM
I´m using Windows XP SP2.
I did know that I could use the system mel command, what I don´t now is a command line to do this using XP only. Or if a program like SmartFTP take command line commands.
I was wondering this was out of MEL scope... but I guess the guys at this forum, could help me, I have no idea where else to ask! :(
04-05-2006, 07:38 PM
You could use windows system commands to navigate to that folder, then use the command "ftp" to ftp to the appropriate server, then use "put" to put it all up.
What'd be better is for you to create a perl or python script, which could not only upload stuff, but also create a database entry, update the webpage, whatever. I don't know a ton about this, and it'd probably be better for you to just learn for yourself anyways.
04-06-2006, 06:12 PM
it would take some web programming, but you may be able to launch a system command to a browser window passing the file name to a php upload script. If you know mel then php will be a piece of cake. I wish I had the exact code for you to use right now, but I havn't wrote anything on the uploading of php. Can't hurt to give it a check...
here is a link you may try.
04-08-2006, 10:35 PM
Yeah, you are double posting and things are messed up. Here what I wrote to your first post and didn't reply : In this melscript I listed all the file texture of a folder... it may serve your project : http://ndhaussy.free.fr/melScript/c...omDirectory.mel
04-09-2006, 12:11 AM
Thaks for all your replies! I will be checking this up soon and let you know if it worked! :)
04-09-2006, 12:12 AM
Yeah, you are double posting and things are messed up. Here what I wrote to your first post and didn't reply : In this melscript I listed all the file texture of a folder... it may serve your project : http://ndhaussy.free.fr/melScript/c...omDirectory.mel (http://ndhaussy.free.fr/melScript/c...omDirectory.mel)
This link unfortunatelly is broken! :(
04-09-2006, 04:10 PM
Why don't you just go back to your first (the only valid one between the tween) post or search for the right link then ?
04-09-2006, 04:10 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.