Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: A Roy Chowdhury
  Where is A Roy Chowdhury?
 kolkata
 India
 A Roy Chowdhury
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
Subject: RE: Process External Batch File
Thread ID: 181038 Message ID: 181044 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, July 1, 2008 8:18:18 AM         
   



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

ENTIRE THREAD

Process External Batch File Posted by anal Roy Chowdhury @ 7/1/2008 7:30:54 AM
RE: Process External Batch File Posted by Stefan Wuebbe @ 7/1/2008 7:48:18 AM
RE: Process External Batch File Posted by anal Roy Chowdhury @ 7/1/2008 8:18:18 AM
RE: Process External Batch File Posted by surinder singh @ 7/1/2008 8:32:50 AM
RE: Process External Batch File Posted by Stefan Wuebbe @ 7/1/2008 8:41:05 AM
RE: Process External Batch File Posted by Samir Ibrahim @ 7/1/2008 9:30:38 AM