in reply to Re^3: Accessing Shared network drive folder
in thread Accessing Shared network drive folder
In the code above the script takes a screen shot at random time. Now I have to upload this image on the linux server's share folder with username and password. I tried Map and Connect both but nothing is working.. The server shared folder path is 192.168.0.24\snapshot.. So pls help me what to do with this ?? thanks..use Date::Format; use Win32::Capture; $counter = 0 ; while ($counter < 5) { $datetime1 = time2str("-%d-%m-%Y-%k-%M-%S",time); $uname = Win32::LoginName() ; $cname = Win32::NodeName() ; $uname .= $cname; $uname .= $datetime1 ; $image = CaptureScreen(); # Capture Whole screen. $image->SaveToFile("$uname.png"); #$image->SaveToFile("//192.168.0.24/library/vishal/$uname.png"); my $random_number = int(rand(15)); print "\n" , $random_number ; sleep ($random_number ) ; $counter++ ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Accessing Shared network drive folder
by Anonymous Monk on Oct 19, 2011 at 11:43 UTC | |
by vishalkbhatt (Initiate) on Oct 19, 2011 at 11:57 UTC | |
|
Re^5: Accessing Shared network drive folder
by Anonymous Monk on Oct 19, 2011 at 12:38 UTC | |
by vishalkbhatt (Initiate) on Oct 19, 2011 at 12:53 UTC |