Maximus Posted July 29, 2014 Report Posted July 29, 2014 a name kuda sync avvatledu.. convinient ga convret chesukunna..U,chicha
k2s Posted July 29, 2014 Report Posted July 29, 2014 using System; using System.IO; using System.Collections.Generic; namespace Scoorge { .... adi java idi perl
Uchiha Posted July 29, 2014 Author Report Posted July 29, 2014 Uchicha...tesion lo vesadu ani anukundammanna..asalu sync avatam ledu..title.. lol... yes PERL ....naku two reqruirements unay.... 1. need to cpy reports (PDFs) from one folder to another folder .. 2. oka automation script kavali time based schedule cheyadaniki .. first script na dagara undi.... but tappu ekado thantundii.... #---------------------------------------------------------- #Sub:copy_reports #Args:nothing #Ret:nothing #---------------------------------------------------------- #Perform copying the reports from source directory to destination directory #Overrides if the files already exist #----------------------------------------------------------- sub copy_reports{ my $source = "\\F:GO00SERVER\\Testfolder1"; my $dest = "\\F:GO00SERVER\\Testfolder2"; my $status = copy("Testfolder1.pdf","Testfolder2.pdf"); log_msg("*******COPYING REPORTS*******"); log_msg("*******REPORTS COPIED*******"); } #---------------------------------------------------------
Maximus Posted July 29, 2014 Report Posted July 29, 2014 adi java idi perl mari idi.. use strict;use warnings; use File::Copy; my $source_dir = "path"; my $target_dir = "path"; copy $source => $target or warn "Copy of $file failed: $!";opendir(my $DIR, $source_dir) || die "can't opendir $source_dir: $!"; my @files = readdir($DIR); foreach my $t (@files) { if(-f "$source_dir/$t" ) { #Check with -f only for files copy "$source_dir/$t", "$target_dir/$t"; } } closedir($DIR);
Spartan Posted July 29, 2014 Report Posted July 29, 2014 @TS.. 2. oka automation script kavali time based schedule cheyadaniki . windows system aite..u can schedule that task in Task Scheduler...time ki start aitadi a script...
k2s Posted July 29, 2014 Report Posted July 29, 2014 c# vayya python/perl & rest of languages thats it
Spartan Posted July 29, 2014 Report Posted July 29, 2014 mari idi.. use strict;use warnings; use File::Copy; my $source_dir = "path"; my $target_dir = "path"; copy $source => $target or warn "Copy of $file failed: $!";opendir(my $DIR, $source_dir) || die "can't opendir $source_dir: $!"; my @files = readdir($DIR); foreach my $t (@files) { if(-f "$source_dir/$t" ) { #Check with -f only for files copy "$source_dir/$t", "$target_dir/$t"; } } closedir($DIR); google.com nunchi etukonchindi...
k2s Posted July 29, 2014 Report Posted July 29, 2014 mari idi.. use strict;use warnings; use File::Copy; my $source_dir = "path"; my $target_dir = "path"; copy $source => $target or warn "Copy of $file failed: $!";opendir(my $DIR, $source_dir) || die "can't opendir $source_dir: $!"; my @files = readdir($DIR); foreach my $t (@files) { if(-f "$source_dir/$t" ) { #Check with -f only for files copy "$source_dir/$t", "$target_dir/$t"; } } closedir($DIR); $ undi antey its perilllllllll man
puli_keka Posted July 29, 2014 Report Posted July 29, 2014 $ undi antey its perilllllllll man what about powershell man. memu bhi $ use chestham for variables bye1 bye1
k2s Posted July 29, 2014 Report Posted July 29, 2014 what about powershell man. memu bhi $ use chestham for variables bye1 bye1 python/perl & rest of languages thats it
Maximus Posted July 29, 2014 Report Posted July 29, 2014 google.com nunchi etukonchindi... anthey kada...
Pichkaari Posted July 29, 2014 Report Posted July 29, 2014 lol... yes PERL ....naku two reqruirements unay.... 1. need to cpy reports (PDFs) from one folder to another folder .. 2. oka automation script kavali time based schedule cheyadaniki .. first script na dagara undi.... but tappu ekado thantundii.... #---------------------------------------------------------- #Sub:copy_reports #Args:nothing #Ret:nothing #---------------------------------------------------------- #Perform copying the reports from source directory to destination directory #Overrides if the files already exist #----------------------------------------------------------- sub copy_reports{ my $source = "\\F:GO00SERVER\\Testfolder1"; my $dest = "\\F:GO00SERVER\\Testfolder2"; my $status = copy("Testfolder1.pdf","Testfolder2.pdf"); log_msg("*******COPYING REPORTS*******"); log_msg("*******REPORTS COPIED*******"); } #--------------------------------------------------------- paapam helpp LTT
Recommended Posts