Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I am not experienced with VBScript but I was able to piece together something that mostly works for what I need. Each user has to install their own printers from the network. Sometimes they have a specific printer set up to direct print to, but I was wanting it to go to TMMWV Cloud Printing without permanently changing their default printer. This prevents sending a large print job to a printer that someone else might be using. From my limited testing, it seems to work correctly. Does everything look correct or should I change something to make it better?
*This is printing 5 different excel files contained within a single folder. Each excel file contains between 8 and 25 worksheets. The .vbs file is contained in the same folder as the excel files.
Since you are not a skilled scripter and since VBScript is obsolete I recommend using PowerShell as it will make the whole project much easier for anyone who is just starting to try and write a script.
Also consider that the whole project can be done entirely in Excel using the same VB methods. You can also more easily set the correct printer in Excel although it can be done in any language using the Excel object. To understand how to do that then post in eth Excel VBA developer forum on the Microsoft site.
This topic is 3 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.