thanks merlyn.. had no clue that they wouldn't always be the first two.. I'll leave as is
edit:Here's the final version for anyone interested. I'm printing the items using TextPad because I like its formatting. I realize its proprietary but I just wrote it for personal use. I could have use the win 32 print shell command but its formatting was ugly so i decided to use textpad. It could easily adapted to provide max compatibility#!/perl -w use strict; print "Enter the path of the folder to print: "; chomp(my $path=<STDIN>); #Fix the slashes $path =~ s{\\}{\\\\}g; #Open the directory if(opendir PRINT,$path) { #Loop through the files foreach((readdir(PRINT))) { #Skip . and .. if(($_ eq ".") or ($_ eq "..")) {next;} #If it is a file if(open TEST,$path."\\".$_) { #Make sure it is a text file if(-T TEST) { #Close the file close TEST; print "currently printing: ".$_."\n"; #Print the file system("\"c:\\Program Files\\TextPad 4\\Textpad.exe\" -p \ +"$path.\\$_\""); } else {print $_. " is a non-text file!\n";} } else {print $_." is a folder!\n";} } } else {print "Could not open directory for printing!";}
In reply to Re: •Re: question regarding slices
by Grygonos
in thread question regarding slices
by Grygonos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |