Alpha Video Training
Results 1 to 4 of 4

Thread: adding a letter or digit a dos file

  1. #1
    abe kravetz
    Guest

    Default adding a letter or digit a dos file

    How can I add a digit or letter on a dos file from alpha4 v3 when I print a report to a file. First I needs to check if the file exists, then If exists then I need to add a digit or letter. I have no problem doing it in A4 internally but the file get created in dos

  2. #2
    Member
    Real Name
    Robert Picard
    Join Date
    Apr 2000
    Posts
    326

    Default RE: adding a letter or digit a dos file

    Hi Abe

    I am not sure if this is what you want but it might get you started. I am assuming that the dos file is not the report.

    This is a batch file to check for the existence of a file. In This case a Previous backup.

    "Filechek.bat"

    REM *** Batch program to check for right backup file ***
    @echo off
    REM ***If correct file for backup goto A and set variable to proceed
    IF EXIST C:tel4save.bck GOTO A
    ECHO TEMP=N>C:TEMP.VAR
    GOTO C
    :A
    ECHO TEMP=Y>C:TEMP.VAR
    :C

    Use the {EXEC} command to execute "filechek.bat"

    If the file already exists then the file temp.var = "Y"
    If the file doesn't exist then the file temp.var = "N"

    Then use {vrestore} to retrieve temp.var

    Depending on the value in var->temp, i.e. "Y" or "N" you can either {vsave} the dos text file with a new value or {vrestore} the existing file and parse the text and {vsave} the change.

    Hope this helps

    Robert

  3. #3
    abe kravetz
    Guest

    Default RE: adding a letter or digit a dos file

    Thank you. I have limited knowledge with the dos interface.

    abe

  4. #4
    Member
    Real Name
    Robert Picard
    Join Date
    Apr 2000
    Posts
    326

    Default RE: adding a letter or digit a dos file

    Hi Abe

    If you need more help, feel free to E-Mail me.

    Robert

Similar Threads

  1. Adding a printed letter to a form
    By AL@ALCO-SALES.COM in forum Alpha Five Version 6
    Replies: 4
    Last Post: 10-28-2004, 01:21 AM
  2. Can I force 7 digit Ph#, if 1st digit is filled?
    By Wanda Tucker in forum Alpha Five Version 5
    Replies: 7
    Last Post: 01-23-2003, 04:02 PM
  3. Adding a file to a contral panel
    By BDennis in forum Alpha Five Version 4
    Replies: 16
    Last Post: 07-03-2002, 04:49 AM
  4. Calculate a check digit
    By Larry Harsh in forum Alpha Five Version 4
    Replies: 4
    Last Post: 05-16-2001, 06:32 AM
  5. adding a counter in dos file
    By abe kravetz in forum Alpha Five Versions 2 and 3
    Replies: 0
    Last Post: 06-10-2000, 11:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •