Results 1 to 3 of 3

Thread: another time

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    49
    i have an exe file that have a command executed in dos "FILE2CD (path of a file)" i'm trying to execute that command with visual basic, first i have to call my exe file,that's well done, but then i have to run the dos command with the path , and that's all in visual basic,does anyone have an idea ow to do that??
    Sorry my english,i'm french
    thanxs

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Do you mean this?
    Code:
    ChDir = "C:\Windows" 'set the path
    Shell "Calc.exe"     'execute a program
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    ChDir is a function, not a property...
    Code:
    ChDir = "C:\Windows" ' Wrong
    Call ChDir("C:\Windows") ' Correct

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width