Results 1 to 3 of 3

Thread: File Name Retrieval

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    24

    Resolved File Name Retrieval

    Hi,

    I need some help on retrieving file names in a specific location, the only problem is the filename is relevant to the machine I am connecting to, so need some sort of wild card option to search for the constant in the file name, and then pull back the full name.

    As an example, if I have a number of machines names computer001 through to computer100, and each machine has a file named computername_status.log (eg computer089_status.log) how can I look for the _status.log part of the filename and then return the complete name to my script?

    It's not a simple as getting the computername as this is an example, the file I'm after is a filename followed by a random 3 figure number.log hence the wild care requirement.

    I hope this is clear in what I am trying to do...

    Thanks.
    Last edited by fireblade; Aug 18th, 2006 at 03:56 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width