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

  • Users: cosfreelance
  • Content: Threads
  • 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, 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...
  3. 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 =...
  4. 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 -----------...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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.
  12. 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...
  13. cosfreelance

    Writing Null values.

    Hi all, I am new to progrmming and php, so apologies for the basic question. i am writing form fields to a text file. however, i do wish to write the key names /values even if they are empty. the code i have is below, what do i change to get the form to write the field names and values...
  14. cosfreelance

    Delete characters between &quot;|&quot;

    Hi all, I am trying to delete characters between a start and stop character. I have currently set this character to "|" how do I delete the characters in between? any help will be appreciated. thanks in advance
  15. cosfreelance

    Array Question

    Dear All, I am creating a web front end that takes form input from a user and writes it to a text file. there are two forms. on the second page i have 4 form fields, Ordered | Received | Description | Price | Total What i am trying to do is on each submit by the user, write the values to a...
  16. cosfreelance

    Printing from a Macro!

    Hi All, I have written a macro to perform functions within a spreadsheet, and all of this works as expected.. what i am looking to do is send (Ctrl +P) at the end of the macro to bring upthe print dialogue box. i dont want to use the default printer, i want to give the users the ability to...
  17. cosfreelance

    Run vbscript / bat before print

    Hi All, Is there a menthod using VBS/WSH,DOS to copy a file (automatically) from the local hard drive to the printer prior to submitting the print job data? I need to download a form to the printers memory, so the form is resident in the printer and is merged with the data that is sent. I...
  18. cosfreelance

    Any Advice - Send PS file to Printer

    Dear All, Is there a postscript command / menthod to copy a file from the local hard drive to the printer? I need to download a form to the printers memory, so the form is resident in the printer and is merged with the data that is sent. I have the ability to run a postscript macro / command...

Part and Inventory Search

Back
Top