Solved Error when running a VB_script

darkhorse

New member
Power User
Local time
8:12 AM
Messages
514
Location
Denmark
I have problem running a vb script.

It tell what is shown in the attachment.

The vbscript looks like this:

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Exec("C:\c:\Program Files\FlexRadio Systems\PowerSDR v2.1 RC3\PowerSDR.exe")
WScript.Sleep(10000)
WshShell.Exec("C:\DDUtil\DataDecoder.exe")
WScript.Sleep(5000)
WScript.Exec ("C:\Program Files\Fldigi-3.22.0AE\fldigi.exe")
WSscript.Sleep 1000

What is wrong here ?
 

Attachments

  • script.jpg
    script.jpg
    13.2 KB · Views: 1

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Homemade
OS
Windows 7 Ultimate
CPU
E7300
Motherboard
ASUS P5Q DeLuxe
Memory
4g
Graphics Card(s)
NVIDIA GeForce 7300 LE
Sound Card
N/A
Monitor(s) Displays
Acer
Screen Resolution
1600x1200
Hard Drives
Samsung HD503HI ATA Device
PSU
Seasonic
Case
ATX
Cooling
FAN
Keyboard
Logitech
Mouse
HP
Internet Speed
20/2
Antivirus
MSE
Browser
IE9, Chrome, Firefox
It says in there: forth line, first character within the WshShell.Exec

That would be incorrect path.
Code:
[COLOR=Red][B]C:\c:\[/B][/COLOR]Program Files\FlexRadio Systems\PowerSDR v2.1 RC3\PowerSDR.exe
 

My Computer

Computer type
PC/Desktop
OS
Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Other Info
"The scale icon at the top right of a post or tutorial is how you can give rep to the member."
@Neutron16

Thanks for the help. It of course was the culprit :D
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Homemade
OS
Windows 7 Ultimate
CPU
E7300
Motherboard
ASUS P5Q DeLuxe
Memory
4g
Graphics Card(s)
NVIDIA GeForce 7300 LE
Sound Card
N/A
Monitor(s) Displays
Acer
Screen Resolution
1600x1200
Hard Drives
Samsung HD503HI ATA Device
PSU
Seasonic
Case
ATX
Cooling
FAN
Keyboard
Logitech
Mouse
HP
Internet Speed
20/2
Antivirus
MSE
Browser
IE9, Chrome, Firefox
Back
Top