DOS Batch File to Copy Files from an Access Application 
Author Message
 DOS Batch File to Copy Files from an Access Application

Hello,

I have a MS Access database that uses the Shell command to run a batch
file that XCOPYs a file.  I know that a number of the DOS commands are
no longer available in XP and Windows 2000.  Is there a way to test to
ensure that the user has inserted a floppy disk as part of the DOS batch
file?  If not, is there any easy way to test this in Access before
calling the batch file?  Any help would be greatly appreciated.

Thanks, John



Sun, 18 Sep 2005 13:21:27 GMT  
 DOS Batch File to Copy Files from an Access Application
John...

Can you use the internal access commands to copy the files.  Here's the
psudo code I'd use:

1.  Read the files from the disk into an array using the directory command

2.  If I get an error throw an message and quite.
If not then For Next through the array using the filecopy command.

Good luck.

Lancer


Quote:
> Hello,

> I have a MS Access database that uses the Shell command to run a batch
> file that XCOPYs a file.  I know that a number of the DOS commands are
> no longer available in XP and Windows 2000.  Is there a way to test to
> ensure that the user has inserted a floppy disk as part of the DOS batch
> file?  If not, is there any easy way to test this in Access before
> calling the batch file?  Any help would be greatly appreciated.

> Thanks, John



Wed, 21 Sep 2005 11:39:24 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Start dos batch file from a VB application

2. Start dos batch file from a VB application

3. Start dos batch file from a VB application

4. Start dos batch file from a VB application

5. Bad Command or File name when Shelling DOS Batch File

6. Help: hiding a DOS window when executing a DOS batch file

7. question on hiding a DOS window when executing a DOS batch file

8. VBScript to replace DOS Batch that deletes old files

9. How to open my local MS-DOS batch file

10. Variables in DOS batch files

11. How to run batch file in DOS window

12. Running DOS Batch file (in WinNT) from VB3

 

 
Powered by phpBB® Forum Software