Hi
Our Sharepoint server is set to use NZ style dates at the OS (2000 Server) but clients attaching to sharepoint are seeing US style dates mm/dd/yyyy (verses dd/mm/yyyy).
My client (using IE 5.0) gets the correct date format attaching to another sharepoint server (not admin by us) but not our...
most commonly this is used so that all output is sent to the null device and not shown on the screen. this is handy for things like loginscripts where you dont want users seeing error messages even if a command fails.
so
/sbin/umount /usr >/dev/null 2>&1
does not pop or any info onto the...
I am still trying perl as it is easier for me to use. I'll try at the unix/root level soon. VBscript may have an answer. I have ways of reading the stamps in perl also.
A good dos app that handles long filenames would be good. VBscript could hand off the variables to the app and let it set...
Interesting seems there is no way for perl to set the last changed date on a file you do not own from Windows.
I posted this question in a few places and no ideas.
Anyone know of a dos tool to set file access using long filenames? I have found loads that only work with short names.
If I try...
Hello people
I have a script to record all file names and timestamps for a directory. Another to change the company property for all office docs. I need to set the dates on the files back to what I have in the logs. This was all done in perl but it is not good at the last stage as I don't...
I have a script that reads a groups of files and records the filename and last changed date. I have another that reads that file and returns files to their last used dates. this works fine on files I own sitting on our samba shares.
However files I do not own but I can still write and change...
Using /\.doc$/ or /\.DOC$/ or /\.xls$/ or /\.XLS$/ or /\.ppt$/ or /\.PPT$/ or /\.dot$/ or /\.DOT$/
on about 530 documents
Start time 1043183211
finish time 1043183223 (12 seconds)
using /\.(doc|xls|ppt|dot)$
Start time 1043183422
finish time 1043183435 (13 seconds)
Nothing in it and...
$feeddir =~ s/\\/\//g;
Thats a good one I knew there was a better way I'll use that.
/\.doc$/i
I did look at this but then perl searches for
Doc, dOc, DOc, doC, DoC, dOC, DOC
I checked and there are only DOC and doc files. The /i apparently really slows down a big search and I have...
If anyone gets here looking for document properties settings this script works really well. Get the latest dsofile.exe from MS first and try this.
use File::Find;
use Win32::OLE;
$feeddir = @ARGV[0];
$feeddir =~ s/\\/\//; # If the dir is given using \ (like c:\temp) then subsitute all \ for...
Yes cooking with gas this script will do an entire directory structure and change all document company properties. change company properties.
My perl is pretty weak so there's a good laugh in here for the rest of you but it works and I am real happy about it! It is reasonably fast also. Test...
Actually I thought you where nice and too the point in a friendly manner. No offence taken.
I have a question for you though. This site is called tek-tips and after 10 minutes of looking I could not figure out how to add one? I keep thinking I must be missing some huge buttone called...
Yes thanks for this I did find it and it looks really promising but it dont work! I am using (excuse the mess I am trying to tweek it).
use File::stat;
my $file = "c:\\this.doc";
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blks)= stat($file);
($sec...
I am reading the date a file was last modified. I have set this as a variable. I then run a process that modifies that date/time and I want to change it back.
The date format I am getting is 18/10/2002 11:25:00 (by reading the properties of a word file). I am planing to us utime to reset...
rosenk
You are a champion. I have been at this for ages and it has been bugging me. Especially seeing as it was so likely to be a small error and you are 100% correct it works like a charm. THANK YOU THANK YOU THANK YOU
gready
I see you where on track I just couldn't quite grasp what you...
greadey
I'm not quite following all that.
I have an update from another thread
http://forums.about.com/ab-perl/messages
(message, please help simple script error in the general discussion I am ironpaw there). A great chap ran the script and it works fine. It might be my older perl version...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.