How to make a file invisible using shell in JavaScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • davidson1
    replied
    Hi friend,

    I want to make it invisible, because I want to make this acton(opening a Excel file) as a scheduled task(which will run everyday) in Virtual Machine. Some others may use that Virtual Machine, so it will appear before them everyday. It will be better if it open(run) in backend. My requirment is to hide that Excel application whis is opening. when it opens it should not appear before users.

    I can explain you with a below example clearly.

    Code:
    var myApp = new ActiveXObject("Excel.Application");   
    myApp.visible = false;  
    myApp.workbooks.open("C:\Spreadsheet.xls");

    Since I have mentioned "myApp.visi ble = false" the opening of Excel file will be invisible.

    In the same way, I want to do in shell, Can yo help me?

    Leave a comment:


  • Rabbit
    replied
    Why do you want to make it invisible? And are you talking about the file or the Excel application? You say file but I'm pretty sure you mean application.

    Leave a comment:


  • How to make a file invisible using shell in JavaScript

    Hi friends,

    I have a below code which is opening a Excel file through shell. When I run this, A Particular Excel file is opening. Is it possible to hide it or make it invisible. It should run in backend, but it should not be visible. is it possible to make it?

    Code:
    var shell = new ActiveXObject("WScript.shell"); 
    shell.run('"C:\\ROME Literature Spreadsheet.xls"',1);
Working...