Results 1 to 3 of 3

Thread: ShellExecute in NT [resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    103

    ShellExecute in NT [resolved]

    I have been trying to create thumbnails of pictures automatically in VB using IrfanView. The code I use is down below:

    Call ShellExecute(0, "", "I:\Irfan\i_view32.exe", inPath & " /resample=(0,100) /convert=" & outPath & " /silent", "C:\", 1)

    inPath and outPath are the filenames (these can't contain any spaces).

    The problem is that it works fine on Windows 2000 machines, but when I run it on NT machines, nothing happens. Does anyone have any idea why this might be?

    Thanks

    Aidan
    Last edited by aidan; Feb 4th, 2003 at 06:52 AM.

  2. #2
    Member
    Join Date
    Feb 2003
    Posts
    51
    you have the correct permisions to the drive, and the resigtry hasnt got no drives on true?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    103
    I have an answer - if I put "open" into the second argument, instead of leaving it blank then it works in NT. This does not seem to be necessary in 2000. I don't know why this should be the case but it is.

    This only works in 2000

    Call ShellExecute(0, "", "I:\Irfan\i_view32.exe", inPath & " /resample=(0,100) /convert=" & outPath & " /silent", "C:\", 1)

    This works in NT & 2000

    Call ShellExecute(0, "open", "I:\Irfan\i_view32.exe", inPath & " /resample=(0,100) /convert=" & outPath & " /silent", "C:\", 1)

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