Can someone help me with this problem?
Set fso = CreateObject("Scripting.FileSystemObject")
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Set Myfile = fso.GetFile("WScript.Echo objArgs(I)")
MyFile.Copy ("C:\")
Next
'Set Myfile =...
Figured it out.
Success = WshShell.AppActivate("Microsoft Access")
If Success = False Then WScript.Quit
Documentation isn't very good in this area. Found it by scouring the net.
Please help. Is there a way to determine if a particular app such as Microsoft Access is currently running? The AppActivate method says that it returns a boolean value whether the call to the app was successful or not. I am not able to figure out how to query that value. Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.