All Questions
Tagged with wscript.shell vbscript
15
questions
0
votes
0
answers
85
views
Is there a way I can see a error for my script file?
I'm trying to figure out why my script isn't running It don't show no error code nor does my script work. Is there a way I can see what the issue is?
Set WshShell = Server.CreateObject("WScript....
1
vote
0
answers
41
views
Why can't I redirect error output from cscript to a text file when I'm calling it from another VBScript? [duplicate]
Alright, so I'm pulling my hair out over this one. I have a VBScript that calls other VBScripts, and I need it to output the errors to text files, since the scripts should be running non-interactively....
-1
votes
1
answer
346
views
How do I put quotation marks into quotation mark (vbs, sendkeys) [duplicate]
I need to type " into notepad with VBS script.
I have this code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
wscript.sleep 500
WshShell....
-2
votes
1
answer
856
views
Is there a way to use a variable in a wscript shell run function?
For some reason my code brings up an error stating that
Script: startup.vbs
Line: 10
Char: 2
Error: Invalid procedure call or argument
Code: 800A0005
Source: Microsoft VBScript Runtime Error
My ...
0
votes
1
answer
97
views
Writing proxy launcher in VBScript/JScript for console application
I want to alter some arguments passed to application by wrapping it into inspectable script.
CMD.exe is out of list because it damages original arguments list (=, , & ; are treated as command ...
0
votes
1
answer
756
views
Any attempt to execute vbs script generates a File Not Found Error
The specific error is:
Script: \\dc\netlogon\folder\file.vbs
Line: 0
Char: 1
Error: File not found
Code: 800A0035
Source: Microsoft VBScript runtime error
The file is at the location specified. ...
0
votes
0
answers
729
views
Do .Exec or .ShellExecute wait for the specified process to terminate before the script continues?
According to SS64, for .Run you can specify bWaitOnReturn to choose whether or not to wait for the process to terminate before your script continues.
SS64's details about .Exec do not mention whether ...
0
votes
2
answers
149
views
Keep searching for file and once it is there just open it
So, I have the following code
FileName = "Path\To\FileName"
Set FSO = CreateObject("Scripting.FileSystemObject")
Do
If FSO.FileExists(FileName) Then
FSO.DeleteFile ...
1
vote
1
answer
216
views
looping with interval wscript
Please help me, I want to modify this file should be like this
Run script
Execute For Loop 5 times
Waiting 5 minutes
Execute For Loop 5 times again
waiting 5 minutes
Execute For Loop 5 times again
If ...
0
votes
1
answer
105
views
vbscript output to text on wndows startup
I'm looking for vbscript that do the following tasks
Script Tasks
execute on startup of the computer,
the way is being executed is via putting it in startup folder of windows in
C:\Documents and ...
0
votes
0
answers
839
views
Fill text in selected field from active window - VBScript, WScript.Shell
I use vbs to upload files into SAP. After clicking "add file" in sap I have the following window on the screen.
I can't control that window using SAP Object so I use WScript.Shell. My question is - ...
2
votes
1
answer
2k
views
CreateObject("WScript.Shell").Run Path with spaces can not find file
I am receiving a error when running a WScript.Shell Run with a path that has a spaces in it.
I've tried several different variations that result in the same error.
CreateObject("WScript.Shell").Run "...
0
votes
0
answers
680
views
Run WScript.exe using VB.NET
I want to run .wsf script using VB.NET so I am using below code.
System.Diagnostics.Process.Start("WScript.exe", Chr(34) + scriptFilePath + Chr(34) + " " + argument)
It is not working if I call it ...
0
votes
1
answer
379
views
How to Get the File Path from Clipboard in Windows Explorer? [duplicate]
I have tried getting the file path from Clipboard (copied file) in Windows Explorer.
I wrote:
Set Ws = CreateObject("WScript.Shell")
MsgBox Ws.ClipBoard
But it states error:
Error: Object ...
0
votes
1
answer
6k
views
How to Maximize Screen from VBScript?
The web application that displays database information is much more readable in full-screen mode rather than a small window. Problem is, I cannot get the window to maximize from UFT/QTP.
I've tried ...