Is it possible to start a batch script from Sharepoint?

Hi,
I want to start a batch script from Sharepoint which executes some sql queries.
Can someone guide me how to start a batch (.bat) script in SP?

Yes and no.  If your script is scheduled to run by some other process (which it should be, because it very likely has  to be run as some account and not the web app account), you should set the script to look for a setting in a sharepoint list,
if that setting tells the script to run, then it does.  This means that, yes, you can start a batch script from sharepoint.
To be able to execute a script directly from sharepoint...no.
Chris Givens CEO, Architecting Connected Systems
Blog Twitter

Similar Messages

  • Initiating batch scripts from Maxl Script Editor in Admin Console??

    Guys,
    Is it possible to initiate batch scripts from Maxl script editor in Admin Console.
    I dont want to automate the scripts as my data loading process can happen at any time.
    Thanks in advance
    A

    Hi A,
    I'm not sure what you're asking? Do you want to run a batch of Maxl scripts, or a batch file, or a single Maxl Script? Why do you choose to use the Admin console to do this? Could you run what you're trying to run in batch from the command line?
    Executing MaxL and MDX Scripts
    To execute a MaxL script or an MDX script:
    Open or create the script.
    From the server drop-down list on the toolbar, select the Analytic Server to execute the script against.
    The drop-down list contains only Analytic Servers that are displayed in your Enterprise View. For more information about connections, see Connecting to Analytic Servers in MaxL and MDX Script Editors.
    Specify how errors should be handled during execution. See Setting MaxL and MDX Execution Options.
    Specify how you want results to be displayed in the Results tab. See Viewing MaxL and MDX Results.
    If the script contains variables, specify how undefined variables are resolved during execution. See Resolving Undefined Variables.
    To execute the entire script, right-click and select Execute from the pop-up menu.
    To execute only part of the script, highlight the statement or statements that you want to execute, right-click, and select Execute from the pop-up menu.
    The script executes against the specified Analytic Server, and the results are displayed in the Results panel.Regards,
    Robb Salzmann

  • Running and stopping a batch script from Java

    I have a requirement in whcih I need to run a batch script which in turn calls another java progam. Now I am using following code which successfully calls batch script and consequently the batch script calls the another java program and batch script exits.
    public static void main(String[] args)
         try {
              Runtime.getRuntime().exec("cmd /c start  c:\\temp\\test.bat" );
         } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         }Now I am developing this a a client-server application on socket programming. Now after some time I need to stop that java program started by batch script. How can I do it? As per my understanding the call "Runtime.getRuntime().exec("cmd /c start c:\\temp\\test.bat" );" kick starts two processes. One the cmd command and another java command ran by test.bat. Now the how to relate the cmd window to the java cmd started by test.bat and how can i send a ctrl+C command to this cmd window so as to close the underlying running java program.
    Please advise.
    Thanks

    Hi Steve,
    Well, I'm having a quite different opinion on this: I would consider such an appraoch not nice but rather dirty...
    If you want users to execute (MaxL) commands against essbase but also would like to avoid installing the client software on each client box I would recommand using web services.
    User opens a browser, press a button, button (on the server side) calls a cmd (or sh) that calls the MaxL shell (on the server) that executes your maxl scripts.
    We have implemented this in two ways:
    1. over IIS (the older version, some years ago - but still running)
    2. over Apex (ever heard about it?) You need a Oracle DB where Apex is installed an running (latest Version is 4.1.1 and you should not use an older) and you need to install the essbase client software on the machine where th Oracle DB resides - However you only need to install it one time...
    If you only want to use the Oracle DB as a relais station (for you Apex Application and Web calls) you can simply install an XE on your essbase server and you have the prerequisites to get it work.
    Maybe it helps somehow.
    Regards
    Andre

  • Is it possible to start a web browser from with xterm (X11)?

    Hello,
    Would it be possible to start a web browser from xterm? I am able to use for example, dbca or netca. But I want to know if I could start a web brower in my xterm. Thank you.

    Thank you. Firefox was not found on this redhat linux, I am guessing it was not installed. I did a find / -name firefox but not finding it. I don't think the SA installed GUI on this box. Is there a browser I can use even though GUI was not installed? That is why I am attempting to use xterm hoping to be able to access a brower in xterm. I am using Xming for xterm. Is there something in Xming I can use so I can access the Oracle Database Control Console? I can use firefox from my desktop but the port is block at the firewall and the SA would not open the port due to security reasons. Thank you.

  • Calling batch script from Release Management for Visual Studio 2013.

    Hi All,
    I need some guidance on executing\ calling a batch script from Release Management for Visual Studio 2013 as one of the activity during release and also let me know whether the tool provides the log of this kind of execution.
    Thanks in Advance,
    Manoj

    Hi Manoj,
    To run batch script during release process when use Release Management for Visual Studio Online, you can use Command Line Runner" tool which allow user to run comtom command line. You can check in by clicking Inventory tab then tools in Release Management
    client. You can check this
    page for more information about release manage tools to deploy an app. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Run batch script from procedure

    How should we run a batch script that contains FDQM command line from a procedure?
    The command line is created using upsShell.exe.
    If anyone has tried the above scenario, kindly share your ideas regarding this.
    Edited by: Vallikannu Annamalai on Apr 9, 2012 4:33 AM

    SH, Since we use Oracle we cannot use xp_cmdshell.
    When we go for External Procedures, only routines callable from C code (not C++ code) are supported.
    For your information we cannot make use of the C program in our environment.
    Is there any other possibility to run the job from within oracle database.
    Please correct if I m wrong. Kindly need your clarification asap. Thank you.

  • How to call a batch script from DI?

    Hi All,
    I'm new to DI/DS and would like to know is there a way to call a batch sciprt (.bat file) in DI?
    What I try to do is,
    1.call a batch script to move source files from a file server to the source folder before kicking off the data flow
    2. once the data flow is completed, call a batch script to move the processed source files to the achive folder.
    In other ETL tool like informatica it can be done via the command task, is there something similar in DI?
    Any help would be appreciated.
    Regards
    BL

    Thanks Suneer.
    Just want to clarify, when I create the script task in the work flow, should I put the path of my batch file or the batch script itself in?
    e.g., my batch script is movefile.bat under folder C:\Script,
    and the command is:  move /Y "C:\Input\*.*". "C:\Archive\".
    in the script task, should I put
    exec('cmd', 'C:\Script\movefile.bat')
    or
    exec('cmd', 'move /Y "C:\Input\*.*". "C:\Archive\".')
    Thanks again for your help
    Regards,
    BL

  • Is it possible to start a remote server from the IDE?

    I would want to know if it is possible to start a domain that makes reference to a remote server (from the IDE). On this way I could start and stop the server without loading so much the machine that I use to develop my portal applications. If it is possible how I can do it?

    There is no personal Information on a crash Report unless you put something personally identifiable in the comment field. For example, here is a crash report I had on my machine awhile back: https://crash-stats.mozilla.com/report/index/bp-1de8924f-7068-4702-a410-89c492121220.
    You can go to about:crashes in your address bar, and click on the report to view the info there to satisfy yourself that there is nothing in the report. But submitting crash reports is very useful because it gives us the ability to view what crashes are plaguing our users and what we need to fix.

  • It is possible to execute a batch file from a business service

    Hi,
    I am developing on inbound batch interface. The interface will be trigged by a batch file and I want to invoke that batch file from within Siebel. To this I've written a business service that uses the Clib.System() method to launch the batch file but I don’t know how don’t send row id as an input with that.
    Please correct me below script is correct or not,
    var ret = Clib.system(“C:\\SEA752\\siebsrvr\\Batch\\CreditCard.exe \I “ + sRowId);
    Regards,
    Sankar.P

    Hi,
    You might want to post this in [Siebel Forum|http://forums.oracle.com/forums/category.jspa?categoryID=151]
    -Arun

  • Batch/script from command line and crontab

    Is possible to create a batch from adobe photoshop 5.5 and use a command line to execute? I need easy batch like "open and save in another kind of extension" but can't find the solution to automate the process from command line.
    Any1 can help me?
    Thank u all

    It sounds like droplets are exactly what you need.  Droplets turn any action into an executable that can be run from the command line passing files to process as arguments.  Just make the action you described, and go to go to file > automate > create droplet in photoshop to make the droplet.
    P.S. this has nothing to do with bridge

  • Is it possible to call DEFAULT.LGF script From SEND and REfresh Schedules

    hello
    Usually, when user sends data from an excel input schedule, Default.LGX logic script is automatically executed.
    I'd like to have Default.LGF script executed instead.
    Is it possible ? How ?
    (I don't want users to launch DM packages).
    Thanks. R.

    As is mentioned in the other threads, the Default.LGF is the basis for the Default.LGX, which is run by each application at the point data is entered via the Excel interface. This file may call other LGX files using the *Include statement.  The logic runs in against the scope of the INPUT members sent via excel.  I don't think there is an efficient method to only run an INCLUDE statement based on a specific SCOPE sent during the data send process.  The entire logic runs during the send, regardless of the SCOPE.  If nothing in the scope is impacted by the logic, the logic doesn't "inteligently" realize this and stop; rather is proceeds with the whole logic process and writes zero records.
    If you ONLY want to run a specific logic package on a sent logic scope, the current process is via Data Manager, or include the logic in default (which still runs in its entirety)
    Hope this helps.

  • Is it possible to start an add-in from a macro?

    I'm working with Visual Studio 2010 for a research purpose. I'm looking for the possibility where an add-in could be started by a macro.
    A macro could be started by an add-in simply. But the problem is vice-versa. Please share your ideas, and especially sample codes.
    I found that it is possible in Microsoft Excel. The VBA macro code 'Call
    myAddinName could help on that. But the requirement is with Visual Studio IDE

    Try ask here: http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vsx
    Visual C++ MVP

  • Failing to start a powershell scripts from Start/Run

    So my real goal is to get a script that we've written to run in a scheduled task. Based on one of the early Scripting Guys blogs, I am working with Start/Run to get the syntax down.
    Here's what I am trying to do is run the command, capturing any output it produces into a log file for later examination.
    So I write
    powershell –noexit –command &{ "H:\Temp\user information\Data\Data\User Update.ps1" >> H:\temp\Data\Data\Runlog.txt}
    When I try to run this in Start/Run, I get this:
    H:\Temp\user : The term 'H:\Temp\user' is not recognized as the name of a
    cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:4
    + &{ H:\Temp\user information\Data\Data\User Update.ps1
    >>H:\tem ...
    +    ~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (H:\Temp\user:String) [], Comman
       dNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    I tried to quote it as described in another of the scripting guys blog - dragging the file from windows explorer into the start/run command line.
    What else am I missing here? 

    Hi,
    Use -File instead of -Command in the arguments section.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Is it possible to run a shell script from AIR?

    I can not scan a local directory unless on of my installed files is chmod
    755. i want to run a script on init() that will chmod 755 a file in the bin-debug directory.
    Thanks in advance for your assistance.

    Problem: I have a Perl script in my AIR App's install directory that needs executable permissions on a Mac.
    Solution: Chmod the file in my AIR App.
    My code looks something like the following:
    if (Capabilities.os.indexOf("Mac OS") > -1) {       
                        var dlFile:File = File.userDirectory;
                        var _chmod:File = new File("/bin/bash");
                        dlFile = new File(file);
                        var nativeProcess:NativeProcess = new NativeProcess();
                        var chmodStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                        chmodStartupInfo.executable = _chmod;           
                        var args:Vector.<String> = new Vector.<String>();
                        args.push("-c"); 
                         // Trace so I can make sure the command and path are correct in the debugger              
                        trace ("\"chmod ugo+x '"+dlFile.nativePath+"'\"");
                        args.push("chmod ugo+x '"+dlFile.nativePath+"'");
                        chmodStartupInfo.arguments = args;
                        nativeProcess.addEventListener(NativeProcessExitEvent.EXIT, onExitError );
                        chmodStartupInfo.executable = new File(file);                       
                        var process:NativeProcess = new NativeProcess();
                        process.start(chmodStartupInfo);  
    I really hope this helps someone else.

  • Possible to start a rac database from another standard oracle kernel ?

    With oracle RAC 10g R2 :
    If all nodes of a ORACLE RAC platform go down, is it possible to restart the database (with existing datafiles) from another oracle standard kernel 10g R2 ?
    Thanks for help : )

    That is an interesting question.. it should be possible.. you will definitely need a copy of your init.ora file. As long as the database files (control files, archive logs and redo logs) are on shared storage you should be able to start the database. Off course you will not have all the clustering features. I think it would be safe to disable the cluster database mode by setting the parameter CLUSTER_DATABASE = 'FALSE'.
    hmmmm... what if you are using ASM? It could be bit more tricky in this case. Depending on the O/S and other ASM components for example ASMLib used. I think it should be possible.. never tried one though.
    You may need to turn off the CLUSTER_DATABASE parameter on ASM as well.
    You will need to create an ASM instance! and get the diskgroups mounted manually. if you plan to try.. do post your findings for the benefit of other readers..
    Message was edited by:
    Murali Vallath

Maybe you are looking for