#!/usr/bin/perl -w
#This script compresses recursively a directory
#into a tar with dir_timestamp name
#where timestamp is in the YYYYMMDD_HHmmSS format
#source: linux forums
$dir_in=shift(@ARGV);
chomp($dir_in);
$dir_in =~ tr/\///d;
print "Archiving $dir_in/* ...\n";
use POSIX qw(strftime);
$now_string = strftime "%Y%m%d_%H%M%S" , localtime;
$tarname=$dir_in."_".$now_string.".tar.gz";
$execstring="tar -zpscf".$tarname." ".$dir_in."/*";
#debug print($execstring); # uncomment to debug
system($execstring);
print("\n");
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
2 weeks ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!