Using DOS commands in VB
From: Talarin (anonymous_at_devdex.com)
Date: 10/29/04
- Next message: George: "Re: Find out if a control has a property at run-time"
- Previous message: John Morley: "Using Shell to launch a Powerpoint .pps file....."
- Next in thread: Rick Rothstein: "Re: Using DOS commands in VB"
- Reply: Rick Rothstein: "Re: Using DOS commands in VB"
- Reply: Douglas J. Steele: "Re: Using DOS commands in VB"
- Reply: J French: "Re: Using DOS commands in VB"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 29 Oct 2004 11:45:29 -0700
Hey guys,
Here's my situation, I have a file out on a shared drive. I need to
take this file, parse it, and save it to a database. Afterwards, I then
need to move this file to an archive folder.
The problem I'm having is trying to move the file. I'm not all that
familiar with the 'Shell' command, but I'm assuming I have to use
something along the lines of
Call Shell(Environ("Comspec") MOVE <source path>, <destination path>)
Unfortunately, I can't get it to work and am having trouble finding some
documentation on the subject. I'm not even sure if the above is the way
to go or not. Can anyone provide me with some help?
BTW, this is using VB6 in a Windows 2000/XP enviroment.
Thanks,
Tal
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: George: "Re: Find out if a control has a property at run-time"
- Previous message: John Morley: "Using Shell to launch a Powerpoint .pps file....."
- Next in thread: Rick Rothstein: "Re: Using DOS commands in VB"
- Reply: Rick Rothstein: "Re: Using DOS commands in VB"
- Reply: Douglas J. Steele: "Re: Using DOS commands in VB"
- Reply: J French: "Re: Using DOS commands in VB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|