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.
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...
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
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...
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...
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.
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?
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 &...
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...
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.