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 Chriss Miller 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: pfildes
  • Content: Threads
  • Order by date
  1. pfildes

    Replacing Formfeed (\f) with Carriage Return (\r) & New Line (\n)

    I have a text file with the '\f' character that I need to replace with the characters '\r\n'. I have tried the 'TR' command but that failed. Can anybody please advise how I do this?
  2. pfildes

    Samba - Using smbclient to copy a file onto a Windows Share

    Hi, I am having difficulty tranferring a file from my UNIX server to a Windows Share using the Samba client - smbclient, from a UNIX SH script When I execute the following command from the shell prompt, it works perfectly; /opt/samba/bin/smbclient //MyWinServer/MyWinShare$ -I 10.85.0.89 -A...
  3. pfildes

    Replace FF character with CRLF

    Hi, I have a need to replace a FF character (Form Feed) in a printer spool file with a CRLF (Carriage Return & Line Feed). I previously replaced the FF character with a blank character using the TR command (e.g: tr '\014' ' '), but I now need to insert a blank line too. Can anybody help please?
  4. pfildes

    PROGRESS OpenEdge 10.1c - Use of DbTool

    Can anybody please provide details of how to call the PROGRESS OpenEdge tool - DbTool, from a UNIX script? [ponder]
  5. pfildes

    Convert fixed format text output to CSV

    I have a fixed format text file which I need to convert to CSV. As this will need to be done repeatedly can you please tell me how I can do this via scripting? My file currently looks something similar to this below; I'd like for the output to be converted so that it looks similar to this...
  6. pfildes

    Installing Progress OpenEdge 10.1c

    Can anybody please provide me with some advice/guidance notes for installing Progress openEdge 10.1c on UNIX (HP-UX Itanium)? On the server, I currently have v9.1e and 10.1b, but need to install 10.1c alongside. Obviously, versions can co-exist, but I do not want to upset these current...
  7. pfildes

    Formatting script output into columns

    In my script I have created a list of subdirectories. How can I present this list formatted in to four columns? i.e. Folder1 Folder2 Folder3 Folder4 Folder5 Folder6 Folder7 Folder8 So far I have the following; for tmpDIR1 in `ls -l /opt/myapp | grep '^d' |awk '{print $9}'`; do if [ -d...
  8. pfildes

    Scripting help required

    Can anybody please help with the following script source code? I have a script which is executed every 15 mins via a Crontab entry. In the script I set a counter initially to zero. If a particular file exists, I read the counter value stored. If it equals 3 I set it to zero. If the counter is...
  9. pfildes

    Script with telnet codes

    I have some UNIX software which runs in a windows environment via some Telnet software. This UNIX software calls a script which passes a PCL file to a users windows default printer using the following source code; (echo "\0033\0133\0065\0151\c" cat $spoolfile echo "\0033\0133\0064\0151\c"...
  10. pfildes

    Script for checking file existance

    I have a problem of trying to identify whether a certain set of files in a source folder exist in a target folder. I'm looking to create a HP-UX KSH script which when given the following as command line args would check if a file exists in both directories; a) File pattern e.g. *.txt b) Source...
  11. pfildes

    Word - MailingLabels

    I had a Word97 document with the following source for printing bar code labels. It works fine with Office97 but fails with Office2003 displaying the message; Run-time error '5843': One of the values passed to this method or property is out of range...
  12. pfildes

    DataAdapter Update Query

    I am currently having problems updating a DataSet via a DataAdapter and CommandBuilder. The following code works when adding new records; Dim myOleDbConnection As OleDb.OleDbConnection Dim myOleDbCommand As OleDb.OleDbCommand Dim myOleDbCommandBuilder As...
  13. pfildes

    Inserting new row in Excel Worksheet

    I have the following code for processing the contents of an Excel worksheet, however I'm having a little difficulty inserting a new row [sadeyes]. Dim myExcel As New Excel.Application Dim myWorkBook As Excel.Workbook Dim myWorkSheet As Excel.Worksheet Dim XLData As String Dim IRow As...
  14. pfildes

    DataAdapter.Update Error

    I am attempting to create new records in an MS Access database using ADO.NET. I have opened a connection, created a DataAdapter and added a new row to the table in the filled dataset. When the DataAdapter is updated I get the message; "Update requires a valid InsertCommand when passed DataRow...
  15. pfildes

    Opening DBF file with ADO.NET

    I'm in the process of migrating from VB6 to VB.NET and need some assistance with opening a DBase IV (.DBF) file using ADO.NET and either OLEDB or ODBC [banghead]. As this appears to be quite different from VB6, what with the use of DataAdapters & DataSets (which appear to replace...
  16. pfildes

    MSCORLIB.DLL - 'System.Security.SecurityException'

    I'm new to VB.NET and have come across a sample application which resembles a basic file explorer. Having opened the project, when I run it I get a message stating; An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for...
  17. pfildes

    Format of Modified Column in Windows Explorer

    I have a need to include the seconds in the time & date Modified column for files when displayed in Windows Explorer [surprise]. At present it displays just date and time (dd mmm yyyy hh:mm). Is this possible? [ponder].
  18. pfildes

    Windows XP - Slow login

    Please help!.[sadeyes] I'm having extreme problems with the login speed of my PC. It is taking 30 minutes to complete the login process. Watching the processes start up in "Task Manager" I'm noticing that it is using almost all of my 512Mb RAM and upto 2Gb of swap file space. It all appears to...
  19. pfildes

    Recovering from a HDD failure

    The HDD on my WindowsME PC has sadly died [sad]. When I bought the PC from a UK computer retailer, it came with the OEM version of WindowsME which takes the form of a boot disk & a Recovery CD. I've bought a new HDD, however I've read that I might now need to buy a new copy of Windows [mad]. Can...
  20. pfildes

    istream::getline

    I have recently converted a C++ program to a MFC DLL and am having problems with istream::getline function. It opens the file (sufficed .sac) no problem [smile], but it hangs on the first call to the getline function [sad] - see code below; #include <iostream.h> #include <strstrea.h> #include...

Part and Inventory Search

Back
Top