Running swf from an Executable

I would like to use swf files as interfaces for my C++
executable files in the Windows environment. I have found a few
examples of how to do this on some web sites, but I would like to
know more. Specifically, I would like to know about the best way to
do this with AS 3. I have tried Zinc, but it does not have the
power that I need. What is the root technology that I should be
looking at? ActiveX?
I assume that there are no specific books on "Using Flash
Interfaces from Executable Files;" but I am looking for something
definitive to study up on so that I can program this sort of thing
from scratch. Any pointers in the right direction would be
appreciated. I am not looking for tutorials on how to do this from
within Visual Studio for AS 1 or 2 files - I already know where to
find those.

I just spent all day trying to figure out how to adjust the
size of a Flash Paper document. This will set it to your .swf size
and also scale it if you stretch the window (combined from various
other posts and my own original work)
Stage.scaleMode = "noScale";
Stage.align = "TL";
//create MovieClip holder for FlashPaper
//create instance of MovieClip holder and place on stage
var mFlashPaperMC:MovieClip =
_root.createEmptyMovieClip("mFlashPaperMC",
_root.getNextHighestDepth());
var mFlashPaper;
//flash paper interface
var mFlashPaperListener:Object = new Object();
mFlashPaperListener.onLoaded =
function(mFlashPaper:Object):Void {
//loading is complete, so we can now adjust the current
page, zoom, etc.
//mFlashPaper.setCurrentPage(mFlashPaper.getNumberOfPages());
//mFlashPaper.setCurrentZoom(33);
mFlashPaper.addListener(this);
//LISTENS FOR RESIZE AND RESIZES FLASH PAPER
var mStageListener:Object = new Object();
mStageListener.onResize = function() {
mFlashPaper.setSize(Stage.width, Stage.height);
Stage.addListener(mStageListener);
loadFlashPaper("QuickStartHelp.swf", mFlashPaperMC,
Stage.width, Stage.height, mFlashPaperListener);
stop();
function loadFlashPaper(path_s, dest_mc, width_i, height_i,
loaded_o) {
var intervalID = 0;
var loadFunc = function () {
dest_mc._visible = false;
mFlashPaper = dest_mc.getIFlashPaper();
if (!mFlashPaper) {
return;
if (mFlashPaper.setSize(width_i, height_i) == false) {
return;
dest_mc._visible = true;
clearInterval(intervalID);
loaded_o.onLoaded(mFlashPaper);
intervalID = setInterval(loadFunc, 100);
dest_mc.loadMovie(path_s);
}

Similar Messages

  • CS3 - run swf from browser

    I have a swf that uses actionscript 3.0 to drag and drop images, activate buttons that run movie clips and manage the display list. It runs flawlessly when I execute it directly (i.e. double-click the swf), but I want to publish it on the web -- so I used File -> Publish to create the necessary html file, but when I run it in a browser (I've only tried IE) the initial screen looks perfect, but none of the buttons and drag and drop features work. Also, when I run the swf using File -> Publish Preview, it fails exactly the same way if I choose HTML, but works perfectly if I choose Flash.
    I created a pared-down version of the fla (see the code below) to try to isolate the problem, and the behavior is exacly the same. I'm attaching the swf and html files for the pared-down version.
    Any ideas?
    Thanks
    ----- actionscript 3.0 code -----
    import flash.display.StageDisplayState;
    import flash.display.Scene;
    import flash.display.MovieClip;
    stage.displayState = StageDisplayState.FULL_SCREEN;
    // for displaying scenario text
    var myTextMovie:MovieClip;
    var myHideTextMovie:MovieClip;
    showtext14_btn.addEventListener(MouseEvent.MOUSE_DOWN, showText);
    function showText(evt:MouseEvent):void {
       myTextMovie = new Myclass14();
       addChild(myTextMovie);
       myTextMovie.x = 530;
       myTextMovie.y = 240;

    http://www.caleuche.com/Special/FlashDevelopment/WebTest2.swf
    http://www.caleuche.com/Special/FlashDevelopment/WebTest2.html
    This button is supposed to run a movie clip that displays a text box. One other bit of information that I've uncovered since my last post is that a co-worker can't get the swf to work under any circumstances. She tried double-clicking it directly (it's on a network folder that she has access to) and also running it using a flash player called Swiff Player. In both cases the button is displayed, but clicking it does nothing (except display the rollover states). The only difference I can think of is that I have Flash CS3 Professional installed on my computer and she doesn't. Might it be some sort of permissions problem or something I have set wrong in the Publish Settings?
    Thanks for your interest and help.

  • Can not see running jobs from, package

    I have a problem with processing parallely runing jobs:
    I am creating another immediately runned jobs in a main job. Those two parallel jobs (2 loads from different databases) have to be finished before I run next operation (working out loaded data). Problem is that, after starting those 2 parallel jobs, I can not see them by select from ALL_SCHEDULER_RUNNING_JOBS that is executed immediately after I create those jobs in a package. If I take a look into ALL_SCHEDULER_RUNNING_JOBS from anonymous statement I can see all my running jobs. Let's sum it up:
    1/ Start of main job
    2/ Running 2 immediately created jobs (load data)
    3/ Checking in loop if jobs created in step 2 are still running
    3.1/ Jobs are running (ALL_SCHEDULER_RUNNING_JOBS check) - sleep for a
    while - It never happens - can't see any running jobs from select executed in
    package but can see them in
    anonymous statement
    3.2/ Jobs finished - start processing loaded data
    Can somebody help me with this task?
    Thanks alot!
    Jakub

    Hi,
    There is no reason a job should be visible from an anonymous block but not from inside a job. There are two things that may be happening here.
    - jobs scheduled to run immediately my not start running as soon as they are created/enabled, you may need to wait a bit before they start running (they will appear in all_scheduler_jobs immediately but maybe not all_scheduler_running_jobs immediately)
    - you may be running into privilege issues. Is the user that executes the anonymous block the same as the user that the job is running as (the job's schema) ? If not maybe the job user does not have privileges to see the job (you can grant alter on the job to the user to ensure this).
    Can you see the jobs in the all_scheduler_jobs view from within the job with status RUNNING ? If you can see jobs in all_scheduler_jobs as RUNNING but not in all_scheduler_running_jobs then this is a bug of some sort.
    Thanks,
    Ravi.

  • How can I hide the main front panel when I run from the executable?

    Hopefully this is an easy question. I have an application where the front panel is not the main GUI and I would like to hide it when the program runs, but only when it runs from the executable. How can I do this?

    NIquist wrote:
    Yeah, don't do that. Executables built in LV require at least one front panel to be open. If it isn't, the run-time engine automatically closes the executable. I haven't checked recently, but I assume this is still the case.
    Instead, you can set the FP state to minimized (as suggested earlier) or (better) to hidden.
    P.S. one side point - the property and invoke nodes have a shortcut - if you use the Application or VI classes and don't connect a reference, they default to the current app or VI. That means you don't have to open the reference.
    Try to take over the world!

  • Controlling multiple external swfs from main timeline

    Hi, I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's.  I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline. 
    I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it should'nt be hard to do." but they did not elaborate any further.  This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now.  I understand pretty much how both pieces of code work, but just can't work out how to combine them.
    If someone could explain it to me, I'd much appreciate it.
    Tutorial One code - controlling an external swf from the main timeline.
    var ldr:Loader = new Loader();
    var urlReq:URLRequest = new URLRequest("swfs/balls.swf");
    ldr.load(urlReq);
    function loadHandler (event:Event) {
    var myClip:MovieClip = event.target.content;
    addChild(myClip);
    function myClipOver(event:MouseEvent):void {
    myClip.myBlueBalls.stop();
    function myClipOut(event:MouseEvent):void {
    myClip.myBlueBalls.play();
    // set listeners
    myClip.addEventListener(MouseEvent.ROLL_OVER, myClipOver);
    myClip.addEventListener(MouseEvent.ROLL_OUT, myClipOut);
    // listener
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);
    Tutorial Two code - loading and unloading multiple external swfs.
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
        loader.y = Ypos;
    addChild(loader);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

    I will not be able to help you with whatever relaxatraja provided though it is purported by relaxatraja to be clearly explaining what I was explaining (???).
    Your loadHandler function appears a bit confused.  For the code you show I don't see you assigning any event listeners for the events that will be dispatched in the loaded file.  As I showed earlier, your loadHandler function should be assigning a listener for the event that will be dispatched (modified slightly below). and if you have three different events being dispatched in the loaded file, then you'll do better to have three different listeners.  I show only one below for one of the events you dispatch...
    function loadHandler (event:Event) {
      // assign a listener for the loaded file's goExit function's event
       MovieClip(event.currentTarget.content).addEventListener("close", event1Handler);
    // I can't make sense of what you have here
        removeChild(myClip); // why ?? - it hasn't been added yet as far as I can see - error 2007?
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf"); // the event.target is the Loader
        ldr.load(newSWFRequest); // this will load over the file you just finished loading??
        ldr.x = Xpos;
        ldr.y = Ypos;
        addChild(myClip);  // why?? it has nothing in it
    function event1Handler(e:Event):void {
        // do whatever is involved with what the "close" event is supposed to do
        trace("goExit function executed");
    As far as what you have in the loaded file, you appear to be trying to pass the files names as if they were parameters.  The file naming should be done at the receiving side for the event handler function for the event listener.  While you could create a custom event that include parameters that you can pass, that's another level of coding that is better left for a future experience.
    Study the following - understand it before you try to use it.
    Below is a link to some files I made for another posting that demonstrates what I have been explaining.  The neurope file is the main file.  Publish the netherlands file so that you have an swf to load for it, and then run the neurope file.  The file that gets loaded (netherlands) only has a button in it that when clicked dispatches an event for which the main file (neurope) has assigned a listener.  The main file displays a message when the button gets clicked in the loaded file.
    http://www.nedwebs.com/Flash/neurope.zip

  • ODI 11g error when running scenario from startscen

    Hi,
    I'm getting the following error when trying to run the scenario using a standalone agent:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 6, in ?
    ImportError: no module named re
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
         at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1581)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    Everything runs fine from the Designer. I can execute the scenarion using the agent from Designer no problem.
    Any idea on this error? Sounds like a path error, but I've checked everything.
    Thanks in advance.
    Nick

    I believe i have the answer.
    When are you are triggering via ODI Designer its going and reading from this folder path Oracle_ODI1\oracledi.sdk\lib
    Now there is another Folder called Lib which has the re.py causing which enables Designer to run the re module perfectly.
    When the same scenarios is being called via startscen it reads the Oracle_ODI1\oracledi\agent\lib and here there is Jython.jar is there but Lib which contains the re.py is missing.
    Temporary Solution - Copy the Lib from Oracle_ODI1\oracledi.sdk\lib to Oracle_ODI1\oracledi\agent\lib and call your startscen again .It should work.
    The reason i am calling this a temporary solution is that we would need to modify the odiparams accordingly to read from the right path namely(Lib) and i dont have much time to look at it now. i will look into it later.
    You can try if this works and if you want you can check with metalink if there is proper solution or reach Oracle Support for more appropriate solution or any other experts who have experinced the same can update the solution.

  • Strange message when trying to run program from outside IDE

    my java code runs fine from within borlands jbuilder IDE, but when i try to execute it from the command prompt i get an error message as follows.
    registry key 'software \javasoft\java run time envirnment \current version ' has value '1.4' but '1.2' is required
    does anybody know what this is about. all im doing is going to the directory i have my class files in then executing
    java program_name

    It sounds like you're running th 1.2 JVM on a machine that has a 1.4 JVM installed. Try using the java.exe command that was installed for 1.4 to run your application.

  • Error trying to publish (real time) to delivery: No response from remote execute trying to save assettype [error was -103].

    Hi all,
    I'm trying to publish for first time to a new environment (delivery).
    The light of target destination is green.
    When i click on "inicialize" i get these errors and in the docs i cannot find why or what i have to do.
    Trying to publish asset types during inicialization it returns this error:
    No response from remote execute trying to save assettype [error was -103].
    Looking for the meaning for this i found: No table. What does it mean? Why the tool has not created the table?
    And then, the next error message is shown (all of them are shown in the same screenshot) trying to mirroring. It might have to do with the previos error message... but i have no idea!
    -12011. No response from remote execute trying to save assettype [error was -103]
    sites.log in delivery environment says as follows
    [2014-01-24 12:13:52,496 CET] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.db] SQLException loading table definition for SiteCatalog with state HY000: [FMWGEN][SQLServer JDBC Driver]Object has been closed.
    java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver]Object has been closed.
    [2014-01-24 12:13:52,527 CET] [ERROR] [.kernel.Default (self-tuning)'] [com.fatwire.logging.cs] ContentServer exception running CS recursively
    COM.FutureTense.Common.ContentServerException: pagename not supplied  Error code:BAD PARAMETER
    [2014-01-24 12:13:52,543 CET] [ERROR] [.kernel.Default (self-tuning)'] [logging.cs.satellite.request] Error accessing the external page with pmd: page: ?Browser=Unknown  Browser&SystemAssetsRoot=/dlv/futuretense_cs/&errdetail=0&errno=0&null= &pagename=fatwire/wem/sso/casInfo
    [2014-01-24 12:13:52,543 CET] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.request] COM.FutureTense.Common.ContentServerException: ContentServerException: (Reading page page: ?Browser=Unknown  Browser&SystemAssetsRoot=/dlv/futuretense_cs/&errdetail=0&errno=0&null= &pagename=fatwire/wem/sso/casInfo from co-resident Content Server failed (errno=0).) Error code:GENERIC SERVER ERROR
    [2014-01-24 12:14:06,021 CET] [ERROR] [.kernel.Default (self-tuning)'] [fatwire.logging.cs.db] SQLException loading table definition for SystemInfo with state HY000: [FMWGEN][SQLServer JDBC Driver]Object has been closed.
    java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver]Object has been closed.
    Does anybody know how to help here?
    Thank you very much.
    Gala

    What SQL server driver are you using, Microsoft's or the jTDS driver (see jTDS JDBC Driver)? It may be worth trying the other.
    Also, can you enable
    com.fatwire.logging.cs=DEBUG
    in log4j.properties and retest, then post the entire resulting sites.log and application server log somewhere for us to see? e.g somewhere like pastebin.com
    Phil

  • Script Alert "You should only run scripts from a trusted source."

    I created a small javascript which opens Photoshop and resizes some images.
    I want to be able to double-click the .JSX file from Windows Explorer, and have Photoshop execute the script. Likewise, I want to be able to run the .JSX file from the command line.
    The script runs perfectly. However, the problem is that I don't want any user interaction. I want to be able to run the script from the command line without the user having to click anything. What happens now when I try to run the file from Windows Explorer of the command line is, I get a Script Alert with the following text:
    You are about to run a script in Adobe Photoshop CS3. You should only run scripts from a trusted source. Do you want to run the script? Yes/No
    Is there any possible way to bypass this message or to answer in the affirmative?
    Thanks,
    Jamie L.

    Hi... Sorry to revive such an old thread,
        Does anyone know the "trusted source" folder for MAC CS4.
    EDIT!
    My bad.  "The /users/<user_name>/documents/Adobe Scripts" folder is working for this purpose for me.  I needed a path to it and forgot that the ~ resolves to the current user.  Sweet.
    -Bill

  • Is it possible to extract a VI from an executable which has debug mode enabled?

    It is a curiosity question from a client.
    Is it possible to extract a VI from an executable which has debug mode enabled?
    Since the block diagram would not be in edit mode....  Is it possible to "peer" into the executable, look at a VI and recover the block diagram?  This owuld be for a deleted VI that is part of an executable which had debug mode enabled..
    Did anyone try this?
    Curious..

    Extract VIs from an EXE?  No problem.  Even if debugging isn't enabled you can extract VIs, they just won't have block diagrams, and may not have front panels depending on if they were removed in the EXE making process.
    Attached is an example project for making an EXE, the EXE itself, and a VI for extracting VIs from the EXE.  The code is quite primative and it was just meant to demonstrate how this can be done.
    To extract the Main.vi from the Application.exe, run Extract Main.vi from EXE.vi, provide the path to the EXE and the path to where the VI should be saved and then run the VI.  This VI will set keys in the INI file for the application, then run th EXE.  Then it opens an application reference to the EXE, then opens a VI reference to Main.vi.  Then it aborts Main.vi, and extracts it.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Test EXE Extract.zip ‏763 KB

  • Help! I can't print from an executable.

    I've written a vi which prints a barcode to a small brother label printer and compiled it into an executable.  Both the exe and vi print when the printer is connected to my computer, but when I move it to the target machine it won't print.  The program seems to run fine, but nothing happens when I send the print command, nothing appears in the print manager.  There are three printers connected to this machine (2 local and one network), and I can't print to any of them using a labview executable, but can using other programs (microsoft word).  Using the "queary available printers" function, all three printers show up.  Any ideas why I can't get anything to actually print out?  Is there a source file I need to add when building an executable?
    Both computers are running windows XP service pack 2.  I am using Labview 8.5, third quarter 2007.
    Thanks,
    Philip.

    Sorry I wasn't very clear in my original question.  My goal is to print from an executable on a computer which does not have Labview 8.5 installed (It does have the runtime engine installed).  The printer is connected locally to this machine and I'm trying to print three lines of text by creating a new report, printing it, then closing it, all using the report generation tools.
    I'm desiginating the printer by just using a text control wired to the printer name input of the print report vi.  I havn't wired the output of the queary printers to the print report vi, but I have copied and pasted this text manually to make sure the name was right.
    How do I build a debuggable exe to check for errors?  This sounds useful!
    I have found a work around for this problem, which was to create an installer for the executable and include every single additional installer.  I'm not sure which one it needed, but my executable worked after this was installed.
    Do you have any idea which additional installer was needed as creating a 1 gig install file and installing this on multiple machines takes a lot of time!
    Thanks for your help,
    Philip.

  • Cfpresentation with a swf from captivate 3

    I have a swf file that I created with captivate 3 for some
    user training. I thought it would be a good idea to include it in
    the new cfpresentation tag. When I run it, the cfpresentation tag
    starts and then I see the captivate starting icon comes up and then
    it is a white screen. I can run the swf from the browser and the
    file runs find. I put a cfpresentationslide before this slide and
    that one comes up fine but then it goes to this next slide and I
    again only get a white screen. THe swf file runs about 30-45
    seconds. Am I doing something wrong? Here is the code. I just have
    the basic since I just want to see it run.

    I built a SWF in a program called Articulate and tried to
    include it in a cfpresentation and it had the same result.
    I also included a SWF built in Adobe Flash that included
    sound and the sound does not make it into the cfpresentation.
    I think the <cfpresentation> tag is a good start, but
    it certainly isn't the jaw-dropping, WOW, this changes everything
    tag that I initially thought it was.

  • How to execute SQOOP.cmd file from SSIS execute process task?

    How to execute SQOOP.cmd file from SSIS execute process task?
    What is argument need to be prefixed in the arguments property
    Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd
    Arguments: /C "sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp  -target-dir /user/emptable -m 1"
    Thanks
    Durga

    Hi Durga,
    SQOOP.cmd must be no different than any other .cmd/.bat I assume, your question is more about setting the parameters up I guessed.
    So unless the arguments change dynamically you can call SQOOP.cmd from yet another .cmd that has its parameters passed to it and the former you simply set to run without the arguments in Execute Process Task.
    Otherwise, in general to set a bat/cmd file to run in SSIS one needs to do this:
    PS: It is a good idea to populate the working directory with the path to the .cmd
    Arthur My Blog

  • VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job

    I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
    Here's the script in question:
    Option Explicit
    Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
    Const holdDays = 6
    main
    Sub Main()
    ClearArchive
    End Sub
    Sub ClearArchive()
    Dim fso 'As Scripting.FileSystemObject
    Dim fld 'As Scripting.Folder
    Dim f 'As Scripting.File
    Dim delLogName, delLogOut, delCtr
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set fld = fso.GetFolder(filePath)
    delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
    Set delLogOut = fso.CreateTextFile(delLogName, True)
    delLogOut.WriteLine(delLogName)
    delLogOut.WriteLine("")
    delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
    delLogOut.WriteLine("")
    delCtr = 0
    For Each f In fld.Files
    If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
    If DateDiff("d", f.DateCreated, Date()) > holdDays Then
    delLogOut.WriteLine(f.Name)
    fso.DeleteFile f, True
    delCtr = delCtr + 1
    End If
    End If
    Next
    If delCtr = 0 Then
    delLogOut.WriteLine("No log files were deleted this run...")
    End If
    Set fld = Nothing
    Set fso = Nothing
    delLogOut.Close
    End Sub
    If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
    do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
    access to the directory and the files do get deleted. Any ideas out there?
    Between this and other outstanding issues, I'm quickly losing faith in SQL Server.  >=o(
    Thanks in advance for your thoughts!
    John
    Version Info:
    Microsoft SQL Server Management Studio      10.0.2531.0
    Microsoft Analysis Services Client Tools      10.0.1600.22
    Microsoft Data Access Components (MDAC)      3.85.1132
    Microsoft MSXML      2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      8.0.6001.18702
    Microsoft .NET Framework      2.0.50727.3603
    Operating System      5.1.2600
    "A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."

    Hi
    jrmunn
    i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
    i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
    Below is the script used inside the file (RefreshExcel.vbs)
    //---Script code-----------------------------------------------------------------
    Dim objXL, objWB
    Dim FileLocation, FileName
    On Error Resume Next
    'lgnConn = 1
    FileLocation = "F:\Reports\Reports"
    Set objXL = CreateObject("Excel.Application")
    objXL.DisplayAlerts = False
    FileName = "ReportFile1.xlsx"
    'MsgBox (FileLocation & "/" & FileName)
    Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
    objWB.EnableConnections
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.RefreshAll
    objXL.CalculateUntilAsyncQueriesDone
    objWB.Save
    objWB.Close
    Set objWS = Nothing
    Set objWB = Nothing
    objXL.Quit
    Set objXL = Nothing
    'MsgBox ("Refresh Completed")
    ---------------------------------------------------------------------------------------------------//Script complete
    Now when i am trying to call this script file in SQL agent job step (as you mentioned )
    as Type -cmdExec(OperatingSystem)
    cscript "C:\RefreshExcel.vbs"
    Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
    to run the file "when user is not logged in"
    that is why  i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
    Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
    Thanks in advance.
    Please help me. :-(

  • Cannot prevent ExtendScript debugging while running scripts from After Effects

    Hi,
    I am facing this issue while running scripts from within After Effects. Whenever I am trying to run a script in After Effects, the script opens up in ESTK in the debug mode. The execution waits at the starting point of the script as if there is breakpoint even though there is none. I am not sure whether what I am missing, whether some debug flag needs to be reset etc. I am using After Effects CC on Windows 7 OS. Any help would be highly appreciated.
    Thanks.

    I tried running the script after removing all $.writeln() statements, but unfortunately that does not resolve the problem. For testing the issue, I am trying with the simple script given below :
    var window = new Window ("palette", "My Window", undefined);
    var panel = window.add("panel", undefined, "Panel");
    var text = panel.add("statictext", undefined, "Testing AE");
    window.show();
    But executing even this one from AE opens up ESTK. I am absolutely stuck with this odd behaviour .

Maybe you are looking for

  • I don't know what else to try to download iTunes! Please help!

    I'm going crazy... I have been reading forums and troubleshooting pages for about 15 hrs and I do not know what else to try. I have 32-bit Win Vista and it will not let me download iTunes. I have run my anti-virus, my spyware remover, cleaned my regi

  • How does GPS in iPhone 4 & 4S work?

    I am an AT&T 2GB data connection subscriber and will be cross-province touring in Quebec, Canada. I am debating on whether to get a portable GPS receiver or use my iPhone to get directions and map layout. Does the iPhone GPS require data connection t

  • Function Previous() does not retrieve good values

    Hello Forum, I'm using BO XIR2, Desktop Intelligence. I'm displaying some quantities and turnover by month and I try to compute the % of increase/decrease between a month and the previous month. The report looks like that : .........................J

  • Server version after patch upgrade

    Hi All, I have upgraded patch SP5 of BPC 7.0 on server and on my local machine. Now on server, it showing 7.0.114 as server version. But when I check the same from my local machine it is showing 7.0.113.

  • Stolen itouch! how do i find it without location services?

    My itouch ws stolen this morning, and im wondering how to find it. I havent got the location services tuned on, and im not sure if the find my iphone app was enabled. Do i still have a chance on finding it? Thanks so much in advance!