remove directory W7 batch getting Access denied
Posted: 13 Dec 2010 12:56
Hi,
Have been using a simple batch file for years running XP called from within a DOS app using start command, which calls following code to ftp records to my website. However, with new computer on w7 Ultimate, getting access denied on rd command, and thing fails. Here is current code...
@echo off
c:
cd\sd\10
if exist c:\sd\td\ftpc del c:\sd\td\ftpc
if exist c:\sd\wt goto gtfp
goto end
:gtfp
**** note*** sf.exe builds a list of files with path for processing
c:\sd\01\sf c:\sd\wt\ *.* >c:\sd\td\ftpc
***** e.exe **** editor formats the list for ftp op based on macros in 00904
c:\sd\01\e c:\sd\td\ftpc c:\sd\03\00904
***** ftp ***** list of stuff to welchco and build an output log
ftp -n ftp.welchco.com <c:\sd\td\ftpc >c:\sd\td\ftpl
rd c:\sd\wt /s/q
exit
So everything works in XP, but W7 hangs on rd command with "Access denied."
This op is launched from within SDS, an app based on e.exe. When the app is closed, then the rd command seems to execute.
Any suggestions to get rd to run in w7 like xp. Is there an environment variable that can be set to allow processing to complete.
Thanks.
Rod
Have been using a simple batch file for years running XP called from within a DOS app using start command, which calls following code to ftp records to my website. However, with new computer on w7 Ultimate, getting access denied on rd command, and thing fails. Here is current code...
@echo off
c:
cd\sd\10
if exist c:\sd\td\ftpc del c:\sd\td\ftpc
if exist c:\sd\wt goto gtfp
goto end
:gtfp
**** note*** sf.exe builds a list of files with path for processing
c:\sd\01\sf c:\sd\wt\ *.* >c:\sd\td\ftpc
***** e.exe **** editor formats the list for ftp op based on macros in 00904
c:\sd\01\e c:\sd\td\ftpc c:\sd\03\00904
***** ftp ***** list of stuff to welchco and build an output log
ftp -n ftp.welchco.com <c:\sd\td\ftpc >c:\sd\td\ftpl
rd c:\sd\wt /s/q
exit
So everything works in XP, but W7 hangs on rd command with "Access denied."
This op is launched from within SDS, an app based on e.exe. When the app is closed, then the rd command seems to execute.
Any suggestions to get rd to run in w7 like xp. Is there an environment variable that can be set to allow processing to complete.
Thanks.
Rod