Results 1 to 4 of 4

Thread: [RESOLVED] Shell

  1. #1

    Thread Starter
    Addicted Member Garrett19212's Avatar
    Join Date
    Jan 2005
    Location
    US
    Posts
    220

    Resolved [RESOLVED] Shell

    Havent used shell before but why isn't this working.

    VB Code:
    1. Shell (App.Path & "/program.exe")
    Says App is not declared.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Shell

    App does not exist in VB.NET. My advice to VB6 users making the switch is to assume that everything is different and if something turns out to work the same way then consider it a bonus. Use this:
    VB Code:
    1. Process.Start(Application.StartupPath & "\program.exe")
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Shell

    you shouldnt use that function, I think it's just there for backwards compatibility
    use Process.Start ("programname here")

    also, Application.StartUpPath is most likely what you're looking for
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4

    Thread Starter
    Addicted Member Garrett19212's Avatar
    Join Date
    Jan 2005
    Location
    US
    Posts
    220

    Re: Shell

    Thank you both..

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