hi,
Thanx for answering..
i hav tried it... but it shows me windows explorer file overwritten dialogue box...
i don't want to display any dialogue.. it should be in silent mode...
cheers
ARC
> Hi,
>
> To me that looks as if your BAT file is still running when your code tries to delete it.
> For instance WSH offers a "Wait" option:
>
oShell = CREATEOBJECT("WScript.Shell")
> oShell.Run(m_BatchFile, 1, .T.)
>
>
> hth
> -Stefan
>
>
>
> > hi,
> > here i create a runtime Dos batch file . Which i want unzip some specific table from suppied zip file.
> > it does not works if erasing file at the end, otherwise work well...
> >
> > m_BatchFile=Sy_Path+FORCEEXT(SYS(3),"BAT")
> > m_FileHandler=FCREATE(m_BatchFile)
> > =FPUTS(m_FileHandler,"pkunzip -o TABDBF.zip -en MSG1.DBF")
> > =FPUTS(m_FileHandler,"pkunzip -o TABDBF.zip -en MSG1.CDX")
> > =FPUTS(m_FileHandler,"pkunzip -o TABDBF.zip -en MSG1.FPT")
> > =FCLOSE(m_FileHandler)
> >
> > DECLARE INTEGER ShellExecute IN shell32;
> > INTEGER hWindow, STRING lpOperation,;
> > STRING lpFile, STRING lpParameters,;
> > STRING lpDirectory, INTEGER nShowCmd
> >
> > = ShellExecute(1, "Open", m_BatchFile, "", Sy_Path, 0)
> >
> > ERASE (m_BatchFile)
> >
> > Help me ... what to do ??
> >
> > rgards
> > Anal Roy Chowdhury