I am trying to write some code to move sub-folders with specific names to another folder. I have used the change, copy, sync and delete commands but I am not sure what am I doing wrong.
When I run this code, my Perl Tk GUI spits out "Released xxx", but the folders haven't actually moved. At the same time, when I run these commands it fails to identify even that the file exists in P4V.
Here is the code snippet dealing with the move.
my $changelistnumber
= qx{(p4 change -o | findstr /C:Description: /C:Change: /C:Client: /C:User: /C:Status: & echo Released $folder) | p4 change -i};
$changelistnumber =~ s/[^0-9]//g;
my $printOutput
= qx{p4 copy -c $changelistnumber -v //syseng/Libraries/Concept/request_for_approval/$libfolderUnreleased/$folder/... //syseng/Libraries/Concept/released/$libfolder/$folder/...};
print "Hello!";
$printOutput
= qx{p4 sync -k //syseng/Libraries/Concept/request_for_approval/$libfolderUnreleased/$folder/...};
print "Hello1";
$printOutput
= qx{p4 delete -c $changelistnumber //syseng/Libraries/Concept/request_for_approval/$libfolderUnreleased/$folder/...};
print "Hello2";
$printOutput = qx{p4 submit -c $changelistnumber};
$d->Label(-text=> "Released $folder" )->pack();