In Linux and MAC systems, just executing pywinktransporter -h on the command line will provide adequate examples of how to use the program.
Windows users will execute pywinktransporter.exe -h
Note
$ pywinktransporter joesmith joesmithpass beachtrip2012.jpg
Uploading file beachtrip2012.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: beachtrip2012.jpg
Imagine you have a directory full of .jpg images to upload:
C:\>pywinktransporter.exe joesmith joesmithpass C:\MyPhotos\*.jpg
Uploading file C:\MyPhotos\picture1.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture1.jpg
Uploading file C:\MyPhotos\picture2.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture2.jpg
Uploading file C:\MyPhotos\picture3.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture3.jpg
....
Many times, users will upload many images at once and will not care to watch the screen to see the upload status of each file. A summary file can be created and used later to determine if all files uploaded successfully. The -f option provides this capability. In the following example, the program will create the file `C:\temp\mysummary.txt`.
C:\>pywinktransporter.exe -f C:\temp\mysummary.txt joesmith joesmithpass C:\MyPhotos\*.jpg
Uploading file C:\MyPhotos\picture1.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture1.jpg
Uploading file C:\MyPhotos\picture2.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture2.jpg
Uploading file C:\MyPhotos\picture3.jpg
100% |#########################################################################|
SUCCESSFULLY UPLOADED: C:\MyPhotos\picture3.jpg
....
Note
Currently a limitation – if an upload is canceled by CTRL-C, the summary file will not be created.