मेरे पास एक बैच फ़ाइल है जो इस तरह दिखती है, जो एक वेबपेज की तस्वीर लेती है और इसे क्रॉप करती है:
cd C:\users\***\Downloads\IECapt-2008-06-10
IECapt --delay=10000 --url=http://test.com/picture.swf?id=1 --out="C:\users\***\My Documents\picture.png"
cd C:\users\***\My Documents
convert picture.png -trim picture.png
ftp -s:place_img.txt
मैं सोच रहा था कि क्या कोई तरीका है कि मैं इस स्क्रिप्ट को बदल कर उपयोगकर्ता इनपुट को URL और फ़ाइल नाम को बदलने के लिए स्वीकार कर सकता हूं। उदाहरण के लिए, उपयोगकर्ता URL और फ़ाइल नाम का इनपुट करेगा और यह इन चीज़ों को बदल देगा:
cd C:\users\***\Downloads\IECapt-2008-06-10
IECapt --delay=10000 --url=(((http://test.com/picture.swf?id=1))) --out="C:\users\***\My Documents\((picture)).png"
cd C:\users\***\My Documents
convert ((picture)).png -trim ((picture)).png
ftp -s:place_img.txt
((URL बदला जा रहा है))
((फ़ाइल नाम बदला जा रहा है)
यह "place_picture.txt" फ़ाइल है:
open test.com
username
pass
hash
bin
lcd c:\users\***\My Documents
cd public_html/test.com/test
put picture.png
bye