Windows 10: Task Scheduler with Windows OLE Excel

Discus and support Task Scheduler with Windows OLE Excel in Windows 10 Customization to solve the problem; Hi, I got the code block in Perl below. I can run via Command and get the output result. When I add a Task Scheduler via my Remote Desktop machine... Discussion in 'Windows 10 Customization' started by HyRoProductions, Apr 9, 2021.

  1. Task Scheduler with Windows OLE Excel


    Hi,


    I got the code block in Perl below. I can run via Command and get the output result.

    When I add a Task Scheduler via my Remote Desktop machine and I'm not getting any result.

    I have Administrator on this system and below is my setting.


    I did some search and folks said that these 2 folders need to create. I went ahead and create if it doesn't exist, it exists now but the script still doesn't output result.



    C:\Windows\System32\config\systemprofile\Desktop

    C:\Windows\SysWOW64\config\systemprofile\Desktop


    I trigger the task manual and no result either. Any one has a solution for this?


    Task Scheduler with Windows OLE Excel 7500a3e6-0a9e-459c-8c99-2f8b320f5b6c?upload=true.png







    use strict;

    use warnings;

    use Win32::OLE;

    use Win32::OLE qwin with;

    use Win32::OLE::Const 'Microsoft Excel';



    my $rand = intrand1000;

    my $output_file = "C:\\JSL\\test_".$rand.".xls";



    my $EXCEL = Win32::OLE->new"Excel.Application","Quit";

    $EXCEL->{"Visible"} = 1;

    $EXCEL->{DisplayAlerts}= 0;

    my $Workbook = $EXCEL -> Workbooks -> Add;

    my $sheet = $Workbook -> Worksheets1;

    $sheet->Range"A1"->{Value} = $rand;

    $Workbook -> SaveAs$output_file;

    $Workbook -> Save;

    $EXCEL->Quit;


    my $jmp = Win32::OLE->new'JMP.Application';

    $jmp->{'Visible'}= 1;


    my $dt = $jmp->NewDataTable"test_jmp.jmp";

    my $col = $dt->NewColumn"Col1", 1, 0, 8;

    $dt->Save"C:\\JSL\\test.jmp";

    $jmp->Quit;


    Win32::OLE->FreeUnusedLibraries;

    :)
     
    HyRoProductions, Apr 9, 2021
    #1
  2. oemSoft Win User

    [SOLVED] Schedule Tasks not able to open excel file

    When I setup a scheduled task within window 7, it works fine and open an excel file, but when I do the same setting under window 10, it can open excel application, but not able to open excel file.

    I have double checked on both PC and confirm those scheduled settings are correct.

    Does anyone have any suggestions on what wrong setting is?

    Thanks in advance for any suggestions

    Original post for Excel Forum:

    https://answers.microsoft.com/en-us...cel-file/73bec2ad-e3e9-43c6-bfb0-985c1645a9d3
     
    oemSoft, Apr 9, 2021
    #2
  3. Window's Task Scheduler Not Running

    Hi,

    To assist you better, kindly provide us more details by answering the following questions:

    • Have you tried recreating the task? If so, are you getting the same issue?
    • Have you tried creating a new task?
    Meanwhile, we suggest that you ensure that the Task Scheduler is running. You can verify if the service is running by following these steps:

    • Press Windows key + R on your keyboard.
    • Type services.msc and hit Enter.
    • Under Services (Local), make sure that the Task Scheduler service's status is
      Started or Enabled.
    Should you need further assistance, feel free to get back to us.
     
    Monica Cam, Apr 9, 2021
    #3
  4. oemSoft Win User

    Task Scheduler with Windows OLE Excel

    [SOLVED] Schedule Tasks not able to open excel file

    Could you please describe more on how to check the right?

    Scheduled task is run under user account on both window 7 & 10.

    The schedule setting under window 10 is same as under window 7, under window 7, schedule task can be run without any problem, but under window 10, it only open excel application and fail to open file.

    Do you have any suggestions on what wrong it is?

    Thank you very much for any suggestions (^v^)
     
    oemSoft, Apr 9, 2021
    #4
Thema:

Task Scheduler with Windows OLE Excel

Loading...
  1. Task Scheduler with Windows OLE Excel - Similar Threads - Task Scheduler OLE

  2. Task Scheduler not running EXCEL File automatically on Windows 10

    in Windows 10 Customization
    Task Scheduler not running EXCEL File automatically on Windows 10: Task Scheduler not running an Excel File automatically on Windows 10 but runs perfectly fine on windows 7? this is how the task shows of the file of the excel file . http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.3. does it seem to be an outdated version of...
  3. Task Scheduler not running EXCEL File automatically on Windows 10

    in Windows 10 Gaming
    Task Scheduler not running EXCEL File automatically on Windows 10: Task Scheduler not running an Excel File automatically on Windows 10 but runs perfectly fine on windows 7? this is how the task shows of the file of the excel file . http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.3. does it seem to be an outdated version of...
  4. Task Scheduler not running EXCEL File automatically on Windows 10

    in Windows 10 Software and Apps
    Task Scheduler not running EXCEL File automatically on Windows 10: Task Scheduler not running an Excel File automatically on Windows 10 but runs perfectly fine on windows 7? this is how the task shows of the file of the excel file . http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.3. does it seem to be an outdated version of...
  5. Task Scheduler does not recognize Excel app

    in Windows 10 Network and Sharing
    Task Scheduler does not recognize Excel app: I have several apps that are started automatically on my pc using the TASK Scheduler without problems, but today I wanted to schedule an Excel app to startup on once a month. I entered the parameters the same as the other Task Scheduler apps that WORK. BUT when I tried to...
  6. OLE seems broken for Excel

    in Windows 10 BSOD Crashes and Debugging
    OLE seems broken for Excel: Posting this in Windows because I don't think it's an Office problem... I think it's an OLE problem. I can't seem to correctly embed an excel object into Word or PowerPoint. This broke a couple of days ago - it just shows up as an Icon instead of a spreadsheet like it...
  7. Schedule Tasks not able to open excel file

    in Windows 10 BSOD Crashes and Debugging
    Schedule Tasks not able to open excel file: When I setup a scheduled task within window 7, it works fine and open an excel file, but when I do the same setting under window 10, it can open excel application, but not able to open excel file. I have double checked on both PC and confirm those scheduled settings are...
  8. OLE seems broken for Excel

    in Windows 10 BSOD Crashes and Debugging
    OLE seems broken for Excel: Posting this in Windows because I don't think it's an Office problem... I think it's an OLE problem. I can't seem to correctly embed an excel object into Word or PowerPoint. This broke a couple of days ago - it just shows up as an Icon instead of a spreadsheet like it...
  9. Refreshing Excel SpreadSheet by runnig script using Task Scheduler

    in Windows 10 Customization
    Refreshing Excel SpreadSheet by runnig script using Task Scheduler: I have the code below. It worked on my old windows machine but now the code does not work for my Windows 10 machine. Thoughts? Here is the code and message I get. It asks me how do I want to open the file (picture below). Also, can I store this file on OneDrive and...
  10. Task Scheduler Windows 10 - Refreshing an Excel Spreadsheet daily on open

    in Windows 10 Customization
    Task Scheduler Windows 10 - Refreshing an Excel Spreadsheet daily on open: I have the code below. It worked on my old windows machine but now the code does not work for my Windows 10 machine. Thoughts? Here is the code and message I get. It asks me how do I want to open the file (picture below). Also, can I store this file on OneDrive and...