Import pictures from your digital camera

title says it all

Import pictures from your digital camera

Postby dgemily on Mon Sep 13, 2004 5:44 pm

This application is built by Jbt_f, I congratulate him for all work he does.

This script can import your pictures from your digital camera or from your memory card reader.

The script: (CopyPhotos.zip)
download the zip and install all the files in the same directory.
This application is built for the French team, and uses default repertories from the French team: C:\Program Files\XlobbyFr\applications\CopyPhotos\

If you use an other directory, edit “CopyPhotos.vbs” (with right click and “modify”) and then, change these lines:
Code: Select all
WavExeTool    = "C:\Program Files\Xlobbyfr\Applications\CopyPhotos\PlayWav.exe"
WavAudioFile  = "C:\Program Files\Xlobbyfr\Applications\CopyPhotos\Sound.wav"


make sure to specify your repertory.

To use it:

Use command lines to launch the import:

With Xlobby, create a button and assign it to an event os/execute file.

File: Root to CopyPhotos.vbs
Ex:
Code: Select all
C:\Program Files\XlobbyFr\applications\CopyPhotos\CopyPhotos.vbs


Argument : " repertory source" " repertory of destination"
Ex:
Code: Select all
"L:\DCIM" "C:\Program Files\Xlobbyfr\Images Photos\"


Copy from disk C: (my CompactFlash Reader, from sub folder \Dcim) to my local disk photo folder C:\Program Files\Xlobbyfr\Images Photos\


It will create a sub folder named with date of the import, if you don’t want this sub folder, edit “CopyPhotos.vbs” (with right click and “modify”) and then, delete these lines

Code: Select all
' This section could be removed (from here)
MyDate = Date
MyfolderDate = DatePart("yyyy",MyDate)

If DatePart("m",MyDate) < 10 then
MyfolderDate = MyfolderDate & "0" & DatePart("m",MyDate)
Else
MyfolderDate = MyfolderDate & DatePart("m",MyDate)
End If

If DatePart("d",MyDate) < 10 then
MyfolderDate = MyfolderDate & "0" & DatePart("d",MyDate)
Else
MyfolderDate = MyfolderDate & DatePart("d",MyDate)
End If


CopyTo = CopyTo & MyFolderDate & "\"

' (to here)


enjoy :lol:
Last edited by dgemily on Mon Feb 14, 2005 9:05 am, edited 1 time in total.
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Tue Sep 14, 2004 8:46 am

I must admit that I ripped this script and modified it for my usage. It bothered me that it creates date-folder according to the CURRENT date, not the date that the pictures were created on.

So I modified it that it reads file created date and creates sub folders according to that. It also creates sub folder for year, i.e. d:\pictures\2004\20040913\.

Available in my extras archive:

http://www.freewebs.com/lanik/index.htm

just click on the download menu and select EXTRAS.

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby dgemily on Tue Sep 14, 2004 9:16 am

Hy Dalanik,

I downloaded your "Visual_Extras.v01.rar" from your websites and there isn't Script inside...
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Tue Sep 14, 2004 12:58 pm

Ahh, you're right... I keep forgetting... :-) sign of old age... :-)

try now, v2

http://www.freewebs.com/lanik/Visual_Extras.v02.rar
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby dgemily on Tue Sep 14, 2004 1:08 pm

:-) sign of old age... :-)


:lol: :wink:

it's ok now,
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby Twit on Sun Sep 19, 2004 6:45 am

dgemily/dalanik,

Thanks for the script.

I have one problem.

C:\Temp3\CopyPhotos\copyphotos.vbs "K:\DCIM\" "c:\Temp\Pics\"

Works. But my photos are in "k:\dcim\100_FUJI" on the memory card.

If i use:
C:\Temp3\CopyPhotos\copyphotos.vbs "K:\DCIM\100_FUJI\" "c:\Temp\Pics\"

I get an error in line 104 - Path does not exist.

The line that works creates a date folder and then a "100_FUJI" folder which i do not want. I just want all photos dumped into the date folder.

Am i doing something wrong or does it have to be this way?

Regards
Simon
Twit
 
Posts: 258
Joined: Thu Nov 20, 2003 4:14 am
Location: South Africa

Postby dgemily on Sun Sep 19, 2004 2:12 pm

the script copies the repertory and it can't only copy the pictures, if you want to do it, you need to modify the script but I can't tell you what you I have to modify...

later
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Mon Sep 20, 2004 8:32 am

Are you speaking of my modified script or the original one? I believe my script works from subfolders - because my camera uses G:\DCIM\100OLYMP\ and my script copies individual files according to THEIR creation date - not according to the CURRENT date (as original script).


D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby dgemily on Mon Sep 20, 2004 8:55 am

Are you speaking of my modified script or the original one?

yes the original one,
Dalanik, I didn't try your script, (not yet)... :wink:
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby edgley on Mon Feb 14, 2005 2:25 am

I would really like either of these scripts, but the links are down.

Could they be posted again please?

Thanks.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby Twit on Mon Feb 14, 2005 3:46 am

Download Visual Skin - the vbs script is included.

http://xlobby.lanik.org/
Twit
 
Posts: 258
Joined: Thu Nov 20, 2003 4:14 am
Location: South Africa

Postby dgemily on Mon Feb 14, 2005 9:05 am

dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby edgley on Mon Mar 28, 2005 11:54 pm

okay, so I have downloaded this.

First, there is an error in line 131. after looking at the script I changed it from wanting the alarmclock.ini to just a text file on my system.

It runs, but doesnt copy anthing over.

How can I check how far it is getting please?

I have even tried using it outside of XL, it seems to run ok, but no files are copied across.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby dgemily on Tue Mar 29, 2005 8:33 am

okay, so I have downloaded this.

First, there is an error in line 131.

edgley,
Where did you download the vbs from?
Is it from my last post? :
dgemily wrote:here is the original one : http://france.xlobby.com/forum/dgemily/CopyPhotos.zip

later,

I can’t understand… there isn’t line 134 on this script, the last one is line 122….

after looking at the script I changed it from wanting the alarmclock.ini to just a text file on my system


the vbs from my last link don’t use the alarmclock.ini (xevent plugin) but I did one script that it use xevent plugin and I did post it on the French forum, did you take the script from the French forum ?

Do you need to write something in the txt files? Or you want only download your pictures ?

Can you post the script that you are using and post also arguments of your event “os:execute file” in xlobby to execute the .vbs ? I will try to see what’s wrong.

Later,
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby dalanik on Tue Mar 29, 2005 9:00 am

Make sure the XAlarmClock.ini file exists in the c:\Program Files\XLobby\plugins\XEvent\ folder...
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Next