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 strongm 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. Majaws2

    Open list of files create another list of files

    Almost perfect now... if I try to read/create files from a text file, it will read all file names correctly (i.e. johntest & johnstest1) it even creates all files, but it only runs the code starting with fgets 0 szline on any except last group in the text file (so all created files are empty...
  2. Majaws2

    Open list of files create another list of files

    I had rearranged the entire code before I saw your reply, with no luck, so I put it back and changed johntest to johntest1 for id 0. It ran thru the first time and created the new file, but it was blank. I went to run it again to see why the parse of data failed, but it would not create the...
  3. Majaws2

    Open list of files create another list of files

    This one may be slightly diff, but still not even reading or writing the files, but does not fail, runs thru completely. I get the usermsg 9 and 10 and the next proc runs. I am almost bald now, pulling my hair out... Proc Parse chdir "C:\Program Files\symantec\Procomm Plus\capture"...
  4. Majaws2

    Open list of files create another list of files

    If Practice makes perfect, I should be getting close... just kidding still far from being close understanding this as I want to. Closer though.. I have done some good.. I have the script running with No Run Time errors at all, I think it was combo of not checking file open status as you said and...
  5. Majaws2

    Open list of files create another list of files

    I have made a few changes and made some progress, I think anyway. It will compile ok, but I get an ERROR 5 upon running. All of the files and names appear to be valid. One thing that worked for some odd reason was to change the if nullstr holdthisjohn (line 142) to holdthis12 it would run and...
  6. Majaws2

    Open list of files create another list of files

    I tried to add something like that before and can't seem to get it to work.. I am still learning... Below is what I added to the middle of the script above... It does not even attempt to run. My text file contains 2 paths/filenames seperated by comma, just as my other text files do. Do you...
  7. Majaws2

    Open list of files create another list of files

    I need to loop this script thru a list of about 100 files and perform the exact same operation on each file, then save the new as 100 new files. I have not been able to get that to work form me.. Any ideas? The files in question in this example are 701.cap and $aaa.txt... Proc Parse...
  8. Majaws2

    Adding character to string

    I was able to get that to work for me.. took me a while though.. thanks.
  9. Majaws2

    Adding character to string

    I have been trying to add an "x" to the begining of a several rows of data. The best I could do is get the x, a carrige return, then the original data. what I get: x 1:9:0 2228 56 what I would like: x1:9:0 2228 56...
  10. Majaws2

    HELP... Getting every 10th record

    Can't get this to work for me any way I try.. I had it before and lost the DB. I need to have a query that will pull every 10th record from another query or table....Anyone know how please help me...
  11. Majaws2

    Set capture file w/ 2 variables

    That did it, I tried to find that answer in my purple book (PP for win), but couldn't. I looked that command up now that you explained it to me.. Works great.. You are a great help.. I learn a bit more everyday. Thanks again
  12. Majaws2

    Set capture file w/ 2 variables

    I am trying to set a capture file using more than one variable. Because the first comes from a text file that I use for many scripts the second varialbe would indicate what script this is. In other words I set holdthis to as first variable from text file (801), I would like to set the second...
  13. Majaws2

    copy data to text file and add character

    I will play with this to see what I can do.. (NOVICE though), the first digit is always single digit, second single or double, third single or double. So could see like a 1:9:0 or a 1:9:24 or 1:15:0 Thanks for the above.. I will see if I can modify
  14. Majaws2

    copy data to text file and add character

    I have a script that runs on 100+ servers. It captures the following data (size will vary) I would like to save this as a text file, but add an x before the numbers in the triplet column. There is other data in my capture file that I don't want to see. Just from the first entry after CALLS to...
  15. Majaws2

    Rename file as (TODAY)

    I was trying to rename a file using aspect, so that the script does not overwrite or append to the existing file. Any ideas, I am currently using the below, but need to name file as a date string. proc newname string Fname = "C:\Program Files\symantec\Procomm...

Part and Inventory Search

Back
Top