|
-
Feb 3rd, 2003, 12:32 PM
#1
Thread Starter
Lively Member
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.
-
Feb 3rd, 2003, 02:31 PM
#2
Member
you have the correct permisions to the drive, and the resigtry hasnt got no drives on true?
-
Feb 4th, 2003, 05:36 AM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|