mystery comand issued

Developers
OCD Novice
2009-01-24
2012-08-14
  • OCD Novice

    OCD Novice - 2009-01-24

    the followig script works, but on delete file option it gives error:

    '0' is not recognized as an internal or external command...

    between 'before' and 'after'

    ps_Date = Date(O)~CHANGESTR('/',"")
    ps_Year = DELSTR(ps_Date,3,4)

    -- Construct file name for today's file; give option to delete file if it already exists

    PUSH 'c:\client\ACH_'ps_Year'\'ps_Date'.TXT'
    PULL NACHA_File
    say NACHA_File

    if SysIsFile(NACHA_File) then
    do
    say ' hit <Enter> to delete 'NACHA_File', 9 to exit'
    pull nothing
    if nothing = "" then
    do
    say 'before'
    SysFileDelete(NACHA_File)
    say 'after'
    end
    else
    exit
    end

    do i need some other syntax?

    --Gary

     
    • OCD Novice

      OCD Novice - 2009-01-24

      never mind ('CAll' fixes it). Sorry.

      --Gary

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks