By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

How to make a file invisible using shell in JavaScript

P: 144
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?

Expand|Select|Wrap|Line Numbers
  1. var shell = new ActiveXObject(""); 
  2.'"C:\\ROME Literature Spreadsheet.xls"',1); 
Mar 9 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 10K+
P: 12,430
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.
Mar 9 '12 #2

P: 144
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.

Expand|Select|Wrap|Line Numbers
  1. var myApp = new ActiveXObject("Excel.Application");   
  2. myApp.visible = false;  

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

In the same way, I want to do in shell, Can yo help me?
Mar 10 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.