meuedyn
asked on
automation with VBS
Hello,
I know how to write a script that open an internet explorer window with VBS and set its size, etc... I was wondering how I could do it with other applications in windows. Mostly, what I need is a way to open up Windows Explorer windows to certain folders and arrange them in a certain way so I organize files (an upload I do every day).
It seems there is a class automation list somewhere that apps have to be added to. Can someone get me started with a script that will open a windows explorer window to C:\WINDOWS\ and size it to 200x200 and place it at location (0,0) on my screen? Once I have it, I think I'll be able to change the destination folders, sizes, and locations, etc, to what I really need. Also, where can I find what options I have available for each application I could startup using VBS?
Thanks experts!
I know how to write a script that open an internet explorer window with VBS and set its size, etc... I was wondering how I could do it with other applications in windows. Mostly, what I need is a way to open up Windows Explorer windows to certain folders and arrange them in a certain way so I organize files (an upload I do every day).
It seems there is a class automation list somewhere that apps have to be added to. Can someone get me started with a script that will open a windows explorer window to C:\WINDOWS\ and size it to 200x200 and place it at location (0,0) on my screen? Once I have it, I think I'll be able to change the destination folders, sizes, and locations, etc, to what I really need. Also, where can I find what options I have available for each application I could startup using VBS?
Thanks experts!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is there anyway that I can write a script, batch file, whatever, you name it.. that can open up, lets say, notepad, to a specific size and location? It would be great to double-click a single icon and have 3 apps open into preset window sizes/locations..
-meue
-meue
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Set WshShell = WScript.CreateObject("WScr
WshShell.Run "%windir%\explorer /e,c:\winnt\", 9
>Also, where can I find what options I have available for each application I could startup using VBS?
Generally that information is available in the online help for that application. All MS Office applications are capable of being automated for example, and you have the option when installing of installing their VBA help as well so that you can look up the object model. It is worth noting that most programs do not expose any automation at all.