Results 1 to 5 of 5

Thread: ShEll?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Talking

    Dont you hate it when you figure something out and the next day when you try to do it again you cant!!! he he he.
    That's my problem...
    I m trying to use the shell command to open my clipboard (win98) ....here's the syntax

    Private Sub Command1_Click
    Shell "C:\Programs\accessories\clipboard.exe"
    End Sub Can Anyone tell me what am doing wrong?

    Thanks :0)



    NewBee Vbeer6.0()
    Working model edition messes with my MIND! hee hee
    End Sub


  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    What error do you get. I can get it work the way you have it (with the change in the path of Clipboard exe file - make sure you have it right)
    Code:
    '//Looks like this on my machine
    Shell "C:\windows\Clipbrd.exe"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240
    The error i would get is "file not found"....
    Do i have to specify the entire filepath? or can i just type it in this way for the clipboard

    Shell "c:\windows\clipboard.exe"?

    thanks.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Since that worked yesterday, maybe you actually lost your file.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Sounds like you've screwed the path to me!

    Your path looks like the start menu position.

    Mine's in C:\windows\system32\clipbrd.exe

    So this software of yours should search for it before using it otherwise it won't work on many systems.

    OR

    as it's only 100k distrute another copy in the app path.
    potentially dangerous I suppose but I wouldn't hard code that path.

    maybe you just spelled clipbrd.exe "Clipboard.exe" and it's not there.

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

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