Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ironpawz

    Date format not American

    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...
  2. ironpawz

    2>&1

    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...
  3. ironpawz

    changing timestamps on a file

    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...
  4. ironpawz

    utime permissions

    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...
  5. ironpawz

    changing timestamps on a file

    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...
  6. ironpawz

    utime permissions

    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...
  7. ironpawz

    Now I'm really desperate

    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...
  8. ironpawz

    Now I'm really desperate

    $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...
  9. ironpawz

    Accessing Office file Properties

    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...
  10. ironpawz

    Now I'm really desperate

    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...
  11. ironpawz

    Checking unix password file against the groupfile

    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...
  12. ironpawz

    changing date of file to seconds since 1970

    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...
  13. ironpawz

    changing date of file to seconds since 1970

    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...
  14. ironpawz

    Now I'm really desperate

    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...
  15. ironpawz

    Now I'm really desperate

    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...
  16. ironpawz

    Now I'm really desperate

    Tanderso Win32::OLE and File::Spec. Both are installed we use em for lots of other things. My perl is very basic still but the main department create scripts for loads of things an I see them using both in scripts so they must be there. >What exactly is SetProperty('Title', $filename) Is...
  17. ironpawz

    Now I'm really desperate

    justice41 Sorry I didn't read your message clearly enough so I tried again with your suggestion. I also tidied up the script a bit as it is causing other confusions I now have: use strict; use Win32::OLE; use File::Spec; my $PropertyReader = Win32::OLE->new('DSOleFile.PropertyReader'...
  18. ironpawz

    Checking unix password file against the groupfile

    OK thanks for pointing my in the correct direction
  19. ironpawz

    Checking unix password file against the groupfile

    I wrote this script to check our group file to see if there was any user in there that are not in the password file. It also puts the full username in the password file which is real handy. I know the perl is poor (It was also a learning exercise) but it works really well. Best I share...
  20. ironpawz

    Now I'm really desperate

    I just get the output. The file is not read only and I def have permissions to it. There is a way to increase the debugging also isn't there I'll give that a go also. Unable to change title: c:\temp\cst

Part and Inventory Search

Back
Top