473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to make a file invisible using shell in JavaScript

144 100+
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("WScript.shell"); 
  2. shell.run('"C:\\ROME Literature Spreadsheet.xls"',1); 
  3.  
Mar 9 '12 #1
2 1707
Rabbit
12,516 Expert Mod 8TB
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
davidson1
144 100+
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;  
  3. myApp.workbooks.open("C:\Spreadsheet.xls"); 
  4.  

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

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

Similar topics

2
by: Dave | last post by:
hi, I'm have a control which inherits from the panel control and I want to make it invisible at design time -- like the Timer control. Any suggestions?? Thanks, davermcl
0
by: Mike Wasilewski | last post by:
I am trying to get file information using COM but I do not get all of the info using the code below. $shell = new COM("Shell.Application") or die("COM Shell Application Problem."); $myfolder=...
0
by: Chris | last post by:
Are there any arguments against using SHELL command for opening Access from VB6 ? I will define full path of access, system.mdw path, user name and password and database path to be opened. I...
1
ilikesuresh
by: ilikesuresh | last post by:
Hi, My requirement is to view the certain file from unix shell(korn). What i did is $SQLPLUS -S $sql_user_name/$sql_user_pwd@$sql_service exec emp_history(); commit; . . .
1
by: quartz | last post by:
Hello, I have a txt file with names, years, days. How can I insert table using shell scripting??? Thenks a lot,
3
by: quartz | last post by:
Hello, May I convert txt file to HTML using shell? Thenks,
9
by: madhu3437 | last post by:
help ,please using shell script i want know the all process are running or not in a particular path. the result will shown in web page (html). process name = running ( server is running)...
1
by: creeds | last post by:
Hello , I am thinking of performing databse operation using shell scripts , for example i am in need to delete sum number from database very often so if i just run a shell scripts and give that...
3
by: gupta24 | last post by:
How can create web page using shell script....... Like web page like winner of the month(given the input) = john type of the prize(given the input)= gold the given page like
1
by: Marina Chitchi | last post by:
In detail section of access report I have txtProblem. I put a line under this text. I want to make line invisible if txtProblem is null and visible if it populated (by the recordsource.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.