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: *

  • Users: cosfreelance
  • Order by date
  1. cosfreelance

    Text File Characters Encoding

    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
  2. cosfreelance

    Extract data from file

    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...
  3. cosfreelance

    Extract data from file

    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...
  4. cosfreelance

    Extract data from file

    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...
  5. cosfreelance

    Skip Lines in text file

    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 =...
  6. cosfreelance

    Selection List from files stored in directory

    Thanks BigRed1212 !! Perfect, exactly what I needed
  7. cosfreelance

    Selection List from files stored in directory

    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 -----------...
  8. cosfreelance

    Replacing Delimiters in a csv file

    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...
  9. cosfreelance

    Replacing Delimiters in a csv file

    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
  10. cosfreelance

    Replacing Delimiters in a csv file

    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...
  11. cosfreelance

    User Login Page

    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...
  12. cosfreelance

    Print Seperator Page \F

    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...
  13. cosfreelance

    Calling Functions

    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...
  14. cosfreelance

    set default paper size for printer

    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...
  15. cosfreelance

    Input Past end of file

    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...
  16. cosfreelance

    Array Problem

    Hi guitarzan, Thanks for the help, exactly what I neeeded. Much appreciated
  17. cosfreelance

    Array Problem

    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...
  18. cosfreelance

    Array Problem

    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...
  19. cosfreelance

    Reading two lines at a time

    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.
  20. cosfreelance

    Skype

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

Part and Inventory Search

Back
Top