Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7368387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:39:51+00:00 2026-05-29T03:39:51+00:00

Ok, So I haz lots of scripts that are generated by a team in

  • 0

Ok,

So I haz lots of scripts that are generated by a team in my organisation which need to then be processed via SQLPlus

Basically we/me get loads of emails with the script location @Z:/aFolder/aScript.sql;

We then have to process them individually by opening up SQLPlus and pasting the file location in there “@Z:/aFolder/aScript.sql;”

I have been looking into a way to automate this via either c# or VBA

I think that the Windows Script Host Object Model option via VBA is a good one

Example:

Option Explicit 

Sub SQLPlus(strFilePath) 

    Dim WShell As New WshShell 
    WShell.Run "sqlplus username/pass...@serverlocation.com " & strFilePath 

End Sub 

Sub test() 

    Call SQLPlus("@Z:/aFolder/aScript.sql;") 

End Sub 

Only issue is that I get an error from passing that last file location in there: “SP2-0310: unable to open file location “Z:/aFolder/aScript.sql;”

Am I missing a special character or something from this?

I pass the @ sign into the string but its not recognised on the command line??

Any input greatly appreciated, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:39:53+00:00Added an answer on May 29, 2026 at 3:39 am

    Ok, this is now resolved [in a fashion]

    What I’m doing is passing the file location parameter to a .bat file

    So I have my .bat file OracleSQL.bat which contains this code:

    @echo off 
    sqlplus username/password@serverlocation.com @%1 
    exit; 
    

    I can now shell out to the batch file with the file parameter:

    Dim strBatchName As String 
    
    strBatchName = "C:\location\of\bat\OracleSQL.bat Z:/aFolder/aScript.sql" 
    Shell strBatchName 
    

    Done 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I want a function I can call which lets me iterate in a
I have this little code which lists all matches of items that contains the
Let's say I have this input: I can haz a listz0rs! # 42 #
Hel lo, guys. Can I haz syntax hightlighting in TextMate for D language somehow?
fairly simple question I think that I couldn't find the answer to in the
When using $('.foo').click(function(){ alert(I haz class alertz!); return false; }); in application.js, and <a
I am trying to get datepicker to display the day names I am sending
I just cant get the hang of regular expressions, trying to find the ,
I need to work out how to change the default 'my location' blue dot
So, this feels silly, but I can't get my head around it. I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.