473,385 Members | 1,372 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,385 software developers and data experts.

Need excel to execute a script as a macro to open a folder on a network computer

1
I need excel to execute the following .bat file, except fill in corresponding ip address information that is located in cells B8-B66.

@ECHO OFF
ECHO.
ECHO *************************************************
ECHO ** This Batch file allows you to connect to a c$
ECHO ** of another Computer
ECHO *************************************************
ECHO.
SET /P IP=[Please Enter the IP Address of the Host:]
ECHO.
SET /P NAME=[Please Enter your Account Name:]
ECHO.
ECHO.
NET.EXE USE \\%IP%\IPC$ /USER:pc\%NAME% /PERSISTENT:NO
START /WAIT \\%IP%\C$
NET.EXE USE \\%IP%\IPC$ /DELETE

End result will be - you click on a button in excel next to the ip of the computer you want to look at, and it will execute the bat which will open the corresponding C$ drive of that IP, asking for the username and password
Aug 8 '12 #1
1 1629
Hi
Do you want the bat file to read the IP from the excel sheet ?
Sep 17 '12 #2

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

Similar topics

4
by: Leeor Chernov | last post by:
Hi , I Used the object Excell Application(COM INTEROP) and it is staying as an open process, And the owner(User Name) is ASPNET Altough I try to release it with :...
0
by: oliver | last post by:
QUESTION: How to access an object embedded in a UserControl through Javascript file? Another way to ask this question: How to execute script from a UserControl, accessing other objects in that...
0
by: NoWhereMan | last post by:
Hello, I'm trying to get the list of shared folders of a network computer and add them to a combo box. I'm using the bellow code in VB .NET. Code ==== Private Sub EnumShares(ByVal Machine As...
0
by: ismailc | last post by:
hi, i need help please! i have a macro within an excel file(c:\test.xls) called macro1, how do i get it to execute? xl_app.run macro1 (the area of concern, this does not work) ...
0
by: madhubabumallidi | last post by:
i am designing a web page so that i need to browse a folder and capture all excel file names in that folder, using c#
2
by: femtox77 | last post by:
Hi to all! Do you know if i can execute a macro at exit of a program? If yes, how can i do it? Thank to all Femtox
6
by: trytobreak | last post by:
Hi All, I am a network administrator in a fairly large software company and I would like to write myself a small utility, which would connect (one by one) to all machines on the network and get...
8
viktorijakup
by: viktorijakup | last post by:
Hi !!! This script must open folder, and I must view empty opened folder...!!! I work in "Far manager". Now this script only create folder... @rem = '--*-Perl-*--
3
by: pizzaface | last post by:
Hello: I'm wanting to update a Microsoft Access Table automatically with the network computer name and user name as soon as a user logs onto his/her computer. I would like this to happen with...
0
by: Michael mealin | last post by:
Hi guys. I am trying to fuly automate a cut and paste operation. Basically the data is dragged off the net, formatted using a macro in word then copied from word and pasted into Excel. From there...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.