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 SkipVought 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. ok1397

    copy a file then paste

    Hi everyone, i'm using strtoclip to copy the file name and then sendkey CTRL 'V' to paste file name and seems to be working fine. Thank you for all your help.
  2. ok1397

    copy a file then paste

    I create a text file in Procomm, open Internet explorer and sendkeystr the file name (including path) in a field. But what's happening is that when sendkeystr types the file it's not all complete. for example it would type L:\Document\te instead of L:\Document\test.txt, it never types the file...
  3. ok1397

    copy a file then paste

    is there a way to copy a file? for example "C:\test.txt" and then paste the file path somewhere else? will it stay in memory? I've tried filetocopy "C:\test.txt" but instead of pasting the file path it pastes the first line of the file??? Help please
  4. ok1397

    How to sum up number from a file

    kodr, you are right i didn't realize it. It works perfect now. Thank you for your help!!!!!!
  5. ok1397

    How to sum up number from a file

    proc main string sAmountT string NAMOUNTFname = "NAMOUNT.TXT" string NAMOUNTPathname string sNAMOUNTFile integer iAmountT integer iTotalN fullpath NAMOUNTPathname NAMOUNTFname sNAMOUNTFile = NAMOUNTPathname if isfile sNAMOUNTFile fopen 3 sNAMOUNTFile READ TEXT else usermsg "File...
  6. ok1397

    How to sum up number from a file

    Knob, thank you for responding. I have converted the string to integer but keep getting 0 as a result. here's part of the script. proc main string sAmontT string NAMOUNTFname = "NAMOUNT.TXT" string NAMOUNTPathname string sNAMOUNTFile integer iAmountT integer iTotalN fullpath NAMOUNTPathname...
  7. ok1397

    How to sum up number from a file

    Hello everyone, i have a file with numbers and need to add them up to have a total amount. the file looks somewhat like this: 0000063093 0000088847 0000016058 0000003892 0000147681 0000033828 0000068310 0000217651 0000337445 0000002672 In this case the total will be 0000979477. Each time the...
  8. ok1397

    Procomm From VB

    what exactly are you trying to do with procomm from VB?
  9. ok1397

    Replace first 16 characters of a line with new characters

    Thank you knob and comtechau for your help, i was able to get the script working using fseek to roll back pointer and making changes to the file. Thanks for all your help.
  10. ok1397

    Replace first 16 characters of a line with new characters

    Hi everyone, please help !!! i have a text file which a script searches for a specific string. If the first 16 characters of a line matches the criteria, delete only the first 16 characters of that line and replace with new 16 characters, without deleting the rest of the line. Can this be done?
  11. ok1397

    How to delete partial matching lines, not one after another?

    knob, thank you, i think this will get me started. I'll give it a shot !!!!! Thank you.
  12. ok1397

    Deletetion of duplicate lines with matching part of line

    Swi, i agree, i will give it shot tonite !!! thank you BobRodes, and everyone for your help !!!!!!!!!!!
  13. ok1397

    Deletetion of duplicate lines with matching part of line

    SWI, text file looks like this 12LDF { ON HAND= 1,947 } { QTY ALOC= 864 } { QTY AVAIL= 1,083 } { WH1 AVG= 2,573 } 12LDF { ON HAND= 992 } { QTY ALOC= 0 } { QTY AVAIL= 992 } { WH2 AVG= 402 } 12LDF { ON HAND= 1,599 } {...
  14. ok1397

    Deletetion of duplicate lines with matching part of line

    I tried using dictionary object, works great but is deleting the second line, not the first line as i need it to. Here's the code i have so far: Private Sub Command1_Click() Dim Dict As Dictionary Dim InputData As String Dim Counter As Long Dim UniqueCounter As Long Open App.Path &...
  15. ok1397

    Deletetion of duplicate lines with matching part of line

    Hi Swi, i do want to delete all duplicates if they match in a text file (see below example) the first 20 characters. Will the dictionary object and the .Exists method work? this what it looks like, in this example we are comparing the first 20 characters: ABC123 TOTAL TO ORDER: and DEF456...
  16. ok1397

    Deletetion of duplicate lines with matching part of line

    BobRodes, thank for responding, i'll give it a try. Let you know how it works out.. Thank you.
  17. ok1397

    How to delete partial matching lines, not one after another?

    knob, sorry, it varies, there's no telling how long the file will be. It's a report saved in a text file and some lines the first 49 characters appear in up to 2 lines. for example: this what it looks like this, in this example we are comparing the first 20 characters: ABC123 TOTAL TO ORDER...
  18. ok1397

    How to delete partial matching lines, not one after another?

    knob, length is 49 (need to compare the first 49 characters) !!!!
  19. ok1397

    How to delete partial matching lines, not one after another?

    knob, one more thing, the most duplicates i'll have in the text file are 2-duplicates !!!! for example: AAAAAAA ;this line to delete dkjslkdjflsdfkj AAAAAAA ljkhkjdfkjdsfjkh BBBBBBB ;this line to delete dlkfjdkfjkljkjlkl BBBBBBB sdfklajdklfjdkfjl
  20. ok1397

    How to delete partial matching lines, not one after another?

    Hi knob, i need to check for AAAAAAA duplicates of every line in the text file. Unfortunately i cannot determine which line will have the duplicate so i have to check every line in the text file. Thank you. And thank you all for responding.

Part and Inventory Search

Back
Top