Hi,
Any advice please?
I have a text file that contains doublebyte characters I am being advised (unicode file format i think) . The file begins with FFFE when viewed in a HEX viewer. Is it possible convert the characterset to windows codepage using vbscript?
many thanks
Hi Swi,
i have been working on the script, and have written the script as a class, so i can maybe reuse the script in future, i have most of it working. however, i encountered a problem - if i am searching for the last record i get Input past end of file due to the counter being increased by...
Swi,
Thanks for your help. the extraction works. however, there is a issue in the formatting of the page numbers. for example if i am extracting data from pages 1000 - 1250, there might be currency values in the data $1250.00 that can be picked up as the end page number. so i have had to...
Hi,
I have large text files (6mb - 10mb) that contains invoice data. need to open the text file and extract a range of pages and save it to a new file. I plan to read the text file into a array and search the array for the start and end pages that will be set using variables. The script i have...
Please can anybody assist, I am trying to skip lines in a text file and cant seem to figure why this is not working. Thanks in advance
tmp_file = "C:\test.dat"
Const ForReading = 1
Const ForWriting = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTS =...
Hi all,
I am currently working on a page that has a selection list (multi select list). i am trying to populate the list from files stored in a directoy (c:\myfiles).
this is what i am trying to achive
SELECT1 SELECT2
-----------...
Hi EBGreen,
thanks for the sample code.
I have made the modifications to the script that now works with the printing. however, as i have tried to change the code that replaces the comma with a space and i cant seem to get it working. what do i need to change to get it working:
eg...
this is due to the application that handles the printing, it looks for comma seperated fields. if the quotes existed it would appear on the printout.
thanks
Hi All,
i have CSV files being created from a system. these files are stored in a folder on the network. What i am trying to do is pick up each CSV file and convert it to a text. The problem is some of the field values contain commas, and the complete field is enclosed in quotes. if i replace...
Hi All,
I am looking to get guest/roaming users to login to the domain via a webpage. the credentials entered will then allow access to network resources.
the client pc's are not part of the domain, and i am looking to provide the users with temp user accounts that will expire after a period...
Dear all,
I am creating a seperator page to copy a file to the printer before the print data. according to the switches \F<Pathname> should achieve it.
i have paused the queue and set the sep file as follows.
\
\N
\FTMP.ps
TMP.ps is located in windows\system32, the same directory as the...
Hi All
I have a script that opens a text file and does some data extraction. the extracted data is then saved to a delimited txt file. A part of the script picks up the full country name as in "United States". I need to replace the "United States" with "USA". I have about 100 countries.
I...
missupport1,
I have had a similar problem like the one you mentioned. however i was mapping the printer manually.
the problem i think lies with the driver settings on the print server. On the server check the following under the printer properties
- general tab, Printing Defaults and check...
Hi
I was wondering if anyone can point out the reason i am getting "800A003E / Input past end of file errors". I am unable to figure out why I get this error.
Thanks
fspec="C:\input.txt"
fspec1="C:\output.txt"
LineToSkip = 10
Set fso=createobject("scripting.filesystemobject")
Set...
Hi dm4ever,
i made a mistake, its only working on the last occurance of the word REF. Due to the script looping, i think the value of x is set from the line with the last occurance of the word REF,
For newlines = x To endline -----------> Works only from the last occurance of the word REF...
Hi All,
I am reading a text file in to an array. the text file has 264 lines. The word REF, appears evey 66 lines (set to Jinf1)
What I am trying to do is read the array element index so i find the first appearence of the word REF. Should I remove the message box alert, the word REF is only...
Hi All,
I have a text file which has line item entries. Each line item has two lines per item. What i am trying to achieve is to put the two lines of text onto a single line. After which I plan to create a Csv file.
Whats the best way to read two lines at a time.
thanks in advance.
Hi
I have a skype account that was fully functional in the UK. however, now I am working in the middle east and the telephone company (only provider) over here have blocked all voip communications.
Is there any way i can get around this? I can subscribe to a public vpn service and tunnell...
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.