Jump to content

Search the Community

Showing results for tags 'VBScript Complier-Errors'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 1 result

  1. I am getting the following error with my code in a .vbs file: C:\...\Root_VBS_Script_1.vbs(19, 1) Microsoft VBScript runtime error: Invalid or unqualified reference 1 was unexpected at this time. The .vbs file is as follows: Set wshShell = CreateObject("Wscript.Shell") Set args = WScript.Arguments arg1 = args.Item(0) Dim filename filename = ""&arg1&"" WshShell.SendKeys "root -b" //opens root in batch mode WshShell.SendKeys "~" WshShell.AppActivate ROOT_session WshShell.SendKeys ".x analysis.C" wshShell.SendKeys "~" WshShell.SendKeys ".x double_gaus.C" WshShell.SendKeys "~" WshShell.AppActivate ROOT_session WshShell.SendKeys "c1->SaveAs("&filename&.pdf&")" WshShell.SendKeys "~" WshShell.SendKeys ".q" WshShell.SendKeys "~" WScript.Quit 1 I am using the send keys method to run a program called root (developed by CERN) out of a .vbs file called from a batch file. I am attaching the filename as a parameter when calling the .vbs file. I am uncertain as to why I am getting this error, but I do know that the send keys method opens root and works up until it is supposed to save c1 as the given filename and type. Can anyone help me resolve this error?
×
×
  • Create New...