- Dec 22, 2002
- 84
- 0
- 66
Hi, I have a problem with my FZ20 camera, 2gb SD card and TIFF pictures. Every time I take a TIFF picture with my camera on my 2gb card, it corrupts the file. This guy on Flickr made a bash script that cut out a 16kb block from the picture, "decorrupting" it but it's in bash.
Can any of you wizzie help me get this to work on my Windows XP machine? I'll install some software to make my Windows box recognize bash command if necessary.
Thanks!
The code :
#!/bin/sh
for FILE in "$@"
do
echo "Fixing file $FILE"
dd if=$FILE of=1 bs=16384 count=1
dd if=$FILE of=2 bs=16384 skip=2
cat 1 2 > temp/$FILE
rm 1 2
done
Can any of you wizzie help me get this to work on my Windows XP machine? I'll install some software to make my Windows box recognize bash command if necessary.
Thanks!
The code :
#!/bin/sh
for FILE in "$@"
do
echo "Fixing file $FILE"
dd if=$FILE of=1 bs=16384 count=1
dd if=$FILE of=2 bs=16384 skip=2
cat 1 2 > temp/$FILE
rm 1 2
done