The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
Executing a VBscript with a right click context me
|
|||
|
Rank: ? (2)
Member #: 23423 |
Hi all,
I have recently created a VB script that takes image files and reduces their size. The script handles multiple files handed to it and works fine. The problem lies when I run the script from a right click context menu in windows. Currently if i right click a jpg file and click on my script it works fine for one digital image file but as soon as i select multiple digital images instead of passing the files to the script all at once it passes the each digital image one at a time opening multiple instances of my script. The main feature of the script is that it handles batch conversions. Currently i am using wscript.exe "c:\myProgram.vbs" %1 in registry. Is there any way i can modify registry to pass my script multiple files at a time as one argument. Thank you in advance KT |
||
|
|||
|
|||
|
Rank: Unregistered
|
I guess you must use something like:
wscript.exe "c:\myProgram.vbs" %1 %2 %3 and so on..., this will be limited by the amount of variables the prog can handle (i guess it's up to %9, %0 is a dedicated variable) Greetings, not-logged-in daonlyfreez |
||
|
|||
|
|||
|
Rank: ? (2)
Member #: 23423 |
Thank you for your reply.
I have tried that but that doesn't seem to work. I am not sure on how it works which is why i was hoping someone could tell me. I have added the different variables and it still does the same thing. I am not sure if those variables break up the string of text for example %1 is file name %2 is date of file etc etc. I can get the script to work if I add it to the sendto ie right click and sendto. It works perfectly and handles multiple files without a worry. As soon as i add it to the right click context menu it doesn't work. I have tried to avoid the sendto option as one it can confuse users and two i was having difficulty packaging the script to install on multiple computers with multiple users each having there own profile with a sendto. KT |
||
|
|||
|
|||
|
Rank: ? (2)
Member #: 24970 |
Hi, Khimtai,
I'v had headaches for months trying to solve this very problem and I have found something close to a solution thought not perfect but on my computer it works with up to 120 files selected at a time. If you want I can post here or send to you the explanations and script codes to use, but I want to make sure you are still reading this thread. Please reply here or mail me at fredledingo@yahoo.com. Fred |
||
|
|||
|
|||
|
Rank: ? (2)
Member #: 24970 |
For an easy solution please visit Context Menu Customizer Hta homepage on my website:
http://wwww.hageart.com/vbs/cmcustomizer.htm direct download: http://wwww.hageart.com/vbs/Context_Menu_Customizer.zip All the necessary informations in the readme file! Read it carefully. HTH » Post edited 2009-08-02, 01:06am by Fredledingue.
|
||
|
Please login or register to post a reply.
