Using DOS commands in VB

From: Talarin (anonymous_at_devdex.com)
Date: 10/29/04


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!



Relevant Pages

  • Re: Command-line option parsing
    ... > I disagree about the example being all you need. ... perfectly valid and I'll try to improve the documentation. ... > At the end of the parse() method (and why is it self.parse, ... they don't detract from the "Perl modules are well documented" meme. ...
    (comp.lang.ruby)
  • Re: reference for 2 IP #s for 1 NIC
    ... > Could someone point me in the direction of documentation on how to set ... Hey Bill, to alias an address on a NIC, go to ... Where xx.xx.xx.xx is the gateway you are using for the second address. ...
    (RedHat)
  • XML to XSL
    ... Hey, I have a slightly different XML file type then I'm used to and my ... XSL will not parse the data in at all. ...
    (comp.text.xml)
  • Re: AIX documentation. Now Resolved.
    ... Hey Ku, ... Under 4.3.3 I was able to access it by executing the ... >> Documentation icon off the CDE help menu. ... >Hey Bruce, ...
    (AIX-L)
  • Re: ANN: WPF Toolkit Release
    ... Don't know if the problem has been solved yet - I gave up trying to parse the ... read only the english parts. ... (Fail, but hey, can't be perfect.) ...
    (microsoft.public.de.german.entwickler.dotnet.framework)