473,406 Members | 2,345 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,406 software developers and data experts.

Read Excel contents, search servers and Pass into another excel file.

Hi guy,

I'm Javascript beginner... Recently thinking to have a code, which can read a list of servers from EXCEL (XLS) file and search these servers from network and then pass the results into another excel fle. Any expert can help me....

\\%%i.domain.com\HKEY_LOCAL_MACHINE\SOFTWARE\Firew are Systems\Galaxy\Platform Information\%%i.domain.com\servers" /v "sCSCLIENTNAME

Currently i have a version using dos command to grep info as per bottom..
But that's not flexible when want to check more servers with that.

--------
@echo off
:Start
CLS
ECHO.
echo.
echo.
echo Server:
for /f "tokens=1 delims= " %%i in ('readstr') do (reg query "\\%%i.domain.com\HKEY_LOCAL_MACHINE\SOFTWARE\fire ware Systems\Galaxy\Platform Information\%%i.domain.com\csserver" /v "sCSCLIENTNAME") > temp.txt
sh runme.sh
call cs
echo Comm Serve = %CSServer%
echo Do you want me to launch the fireware?
choice
if errorlevel 2 goto norunning
if errorlevel 1 goto runit

goto bye

:norunning
goto bye

:runit
echo Launching commserve...
cmd /c start c:\apps\cssear~1\cs\%CSServer%
pause.
goto bye

:bye
goto start


--------
Apr 23 '07 #1
0 1232

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

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
1
by: Lisa | last post by:
I have an excel file on my server, which contains an embedded query. I want to be able to open the excel file, pass the contents of my variable into a cell within the worksheet and then refresh the...
3
by: Prakash | last post by:
Hi, We face problems uploading excel (with macros) documents using HTML File Upload. The file contents are corrupted while viewing the same. However, we are able to upload excel (w/o. macros)...
10
by: QQ | last post by:
I am trying to read data from Excel files I use the following codes, however, it didn't work Can anyone tell me what the format excel files have, what I should do to read it from C? Thanks a...
12
by: D. Shane Fowlkes | last post by:
This most likely belongs in another forum but I thought I'd start here. I have a COM Object written in VB6. The DLL will access MS Excel and use it's Object Library to write a customized report...
3
by: Scott | last post by:
I want to search 5 or 6 very big excel spreadsheets looking for specific data held in them. The search would be using clients surnames and maybe postcodes to eventually find the correct person. ...
0
by: Y2KPRABU | last post by:
for exporting to excel just call the function below in sample code and pass the page object from an aspx and the aspx page contents are rendered in excel.. make control.visible = false if you...
2
by: phub11 | last post by:
I'm wanting to populate a drop-down based on the contents of one column in an Excel file, and then submit the file to a PHP script. I've gotten PHP to read and process the Excel file fine...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.