I would like to pass file names as arguments to a VBS script in a users SendTo folder of Windows 2008 server. For testing purposes I reduced the problem to the following:
created a test.vbs with the single line "MsgBox WScript.Arguments.Count" within "C:Users\<username>\AppData\Roaming\Microsoft\Windows\SendTo"
right clicked the file, chose "Send To / test.vbs"
got the message "0" (so no arguments were passed)
I did the same on a Windows 2003 Server where I got the message "1" (so one argument was passed, which is correct).
I need this script for automating an important process where I should be able to pass selected files to a script.
Any idea, why this works in Windows 2003 Server but not in Windows 2008 Server?
Thanks and best regards