Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Classic Shell/Explorer Custom Command

26 May 2013   #11

Windows 7 Home 64, Vista Ultimate 64

I finally had some time to investigate, and I found the problem. The thing is VBS files are not executables but documents.
You need to use the command "WScript.exe E:\MKLink.vbs"

If the command is just "MKLink.vbs", then I execute it using the ShellExecute API, which understands how to launch documents like VBS files, or TXT files, etc. However it is a fire and forget type API.

For more complex commands that use %3, %4 or %5, I need to have a direct access to the process that runs, so I can wait for it to finish. For that I need to use the API CreateProcess, which is not smart enough to know that for VBS files it needs to run WScript.exe.

My System SpecsSystem Spec
26 May 2013   #12

Windows 7 Pro 64bit

WScript.exe "E:\zzz.vbs" "%3" "E:\FPVTemp" works!

Thanks for the effort, and the for program, of course.

By the way, just FYI, your HELP says "Keep in mind that if the current folder is a root of a drive it will end with a backslash (like C:\)". I get a double-quote rather than a backslash: i.e. C:"

All the best.
My System SpecsSystem Spec
27 May 2013   #13

Windows 7 Home 64, Vista Ultimate 64

Most likely "%1" turns into "C:\", and \" is considered an escaped double quote by the command line parser. I don't think there's much I can do about it, as I have no control over the parser of WScript or whatever tool you are using.
My System SpecsSystem Spec

27 May 2013   #14

Windows 7 Pro 64bit

It's not a problem. If I get a 3-character "path to current folder" in the form of X:?, I just drop the third character.

Thanks again.
My System SpecsSystem Spec

 Classic Shell/Explorer Custom Command

Thread Tools

Similar help and support threads
Thread Forum
Can shell32.dll remove explorer toolbar using custom classic theme?
I've tried this tutorial, and I still can't remove the explorer toolbar. I use a customized windows classic theme, and I think this might be the reason its not working for me. So, I found another thread with this post and I'm thinking of trying to edit the shell32.dll and see if this method...
classic shell issue
It doesn't seem to affect explorer. And yes, i close all explorer windows after i tweak anything and re-open to see the results. It may work on somethings, i dunno as i haven't tried everything. But for example, toolbar buttons....there are none and i can't add any. i've tried a few other things...
How does it looks like and how do I use Explores Classic Shell?
How does Explores Classic Shell looks like? Does it looks like previous Windows XP File Explorer? Welcome to Classic Shell As there apepars more and more essential functions missing in Windows 7, I just installed onto Windows 7 a Classic shell Explorer 3.1 (not a Start menu or IE9) I checked...
General Discussion
Classic Shell is looking for testers once again
Hi, everybody After 3 months of coding, I am finally ready to unveil the latest version of Classic Shell. I just released Classic Shell 2.9.0 on Source Forge. The main new feature is that you can now edit all settings from the GUI. See the attached screenshots. Gone are the ini files that...
Classic Shell
I have the files here Ivo ^^ Thanks For All Your Time And Help !! ( Especially On Vacation...) =P -THE MOST RANDOMLY AWSOME THING I HAVE EVER LEARNED IN ONE DAY !!! GODMODE ON WINDOWS!!! ( MUST HAVE WINDOWS 7 OR VISTA ) MAKE A NEW FOLDER, AND RENAME IT...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:29.
Twitter Facebook Google+