Announcement

Collapse
No announcement yet.

Trouble using PB( SHELL Command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Cliff,
    Thanks for posting the link to Disable 8.3 Naming Convention in XP Something like that may be at work on Trento's system affecting some folders, though I see he now thinks that is not related to his problem.

    Trento,
    Looking at the first post again and thinking about your comment that the problem is related to the length of the parameter passed. I wonder if the VB app itself is choking on the command line, calling the API internally with an invalid parameter and that is where the error is being flagged?

    Certainly a couple of the posts show error message boxes with "ImageFile" in the tiltle bar.

    Perhaps a quick check would be to use
    Code:
    SHELL "MSPaint.exe " & strFileName1, 1
    Rgds, Dave

    Comment


    • #22
      Better still..

      Code:
       SHELL  "programIwrotewhichreportsthecontentsof_COMMAND$.exe " & strFileName1,1
      Then you will KNOW what the target EXE sees.
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #23
        Not one to give up, I went back and re-read all the comments in this thread.

        The one I missed was Marco Pontello's.

        "SHELL "ImageFile.exe " & $DQ & strFileName1 & $DQ, 1"
        "Or the spaces in it"

        Works . . .
        I made a path to a picture 226 characters long - no problem.

        Thanks for everyone's input.
        Trento Castricone
        www.fileraptor.com
        [email protected]

        Comment


        • #24
          Nice! Glad it helped!

          Bye!
          -- The universe tends toward maximum irony. Don't push it.

          File Extension Seeker - Metasearch engine for file extensions / file types
          Online TrID file identifier | TrIDLib - Identify thousands of file formats

          Comment

          Working...
          X