Need to pass a user-supplied parameter to a batch file from a desktop shortcut.
Posted on 2003-11-03
When a user clicks on an icon that represents a batch file, I'd like to prompt them for a parameter, which is then passed in to a batch file.
I'm able to do this in Windows 98. I create a shortcut to the batch file, and then put a question mark after the name of the batch file in the CMD Line field, ie:
When the user clicks on the icon for this shortcut, they are prompted to type in a value, which the batch file uses. In this specific case, it is Great Plains Accounting, and the user is selecting which company to open.
( If they were at a DOS prompt, they could type GPS ARNOLD or GPS BAKER and Great Plains would open the ARNOLD or BAKER company directories. This is what I'm trying to replicate.)
I went to do this on Windows 2000, and it doesn't work. As we're migrating the users from Win98 to Win2000, I need to bring the old functionality forward.