473,382 Members | 1,353 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,382 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 1231

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.