del not working in .bat file
- From: "RB Smissaert" <bartsmissaert@xxxxxxxxxxxxxxxx>
- Date: Mon, 20 Nov 2006 19:36:56 -0000
Have the following .bat file:
cd C:\RBSSynergyReporting\ReadCodes
del ReadCode.db
C:\RBSSynergyReporting\Program\SQLite3 ReadCode.db <ReadCodeForSQLite.sql
del ReadCodeForSQLite.sql
and this is called like this:
Dim oShell
Set oShell = CreateObject("WSCript.shell")
oShell.Run "cmd /C " & strBATFile, 0
Set oShell = Nothing
DoEvents
All this works fine, except on one machine the line: del ReadCodeForSQLite.sql
doesn't delete the .sql file. I can't see that machine, so not sure what is going on.
Any ideas what the trouble could be here?
The file is present and there are no permission problems. VBS is present as well.
RBS
.
- Follow-Ups:
- Re: del not working in .bat file
- From: Bob Butler
- Re: del not working in .bat file
- Prev by Date: Re: WritePrinter doesn't write anything to the printer.
- Next by Date: Re: del not working in .bat file
- Previous by thread: Re: Excel file in use
- Next by thread: Re: del not working in .bat file
- Index(es):
Relevant Pages
|