»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 08-28-2003, 03:02 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 3
glue_head is on a distinguished road
Outdoors batch file help

hi there,

i am new to batch files and i'm woundering if anybody could answer my question:

i want to know if you can open a file on another computer connected to the network, i.e. open a batch file to shut down a computer on the network?

thanks andy

glue_head is offline   Reply With Quote
Old 08-28-2003, 03:18 PM   #2 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
yes (in some conditions)

If are actually looking for a remote way to shutdown a computer then there are utilities for that too.

Let us know more about your network environment {OSes, domain or workgroup, Admin priviledges on remote machine y/n, etc...)
DVNT1 is offline   Reply With Quote
Old 08-28-2003, 03:49 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 3
glue_head is on a distinguished road
hi there,

thanks for your reply, well i was only giving an example when i said shuting windows down, i want something that will start a file or process from the network;

something basic like

start running anything.bat (on network computer)

my computer uses xp pro

but if possible to be used on any os

win 2000
nt
win 98
so on
glue_head is offline   Reply With Quote
Old 08-28-2003, 04:05 PM   #4 (permalink)
Registered User
 
SeanC's Avatar
 
Join Date: Oct 2001
Location: Toronto Canada
Posts: 1,437
SeanC is on a distinguished road
In XP there is actually a command line utility to shutdown the PC through a batch file. Just go to a command prompt and type "shutdown /?".

It'll give you options that work with it.

W2K might have this option as well.

Sean
SeanC is offline   Reply With Quote
Old 08-28-2003, 04:31 PM   #5 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
If you want to run A executable and not just shutdown there is a small utility called 'ps' that allows for remote command execution.

Believe it is a reskit app
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 08-28-2003, 07:36 PM   #6 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
If you have W2K/XP then get PSEXEC from http://www.systeminternals.com/ntw2k.../pstools.shtml (they have a lot of other great tools there too). This may be what Vass was thinking of.

To use this you need appropriate rights on the remote computer.

Aother type of idea for W2K/XP is the AT.exe command. With AT.exe you can create a sceduled task on the remote PC. In particular, I use VB scipting and AT.exe to do scheduling on large groups of computers within a domain. At.exe is normally found in the %system%\system32 folder.

As for doing similar using other OSes like Win9x and NT40, I'm no longer fluent in those areas.
DVNT1 is offline   Reply With Quote
Old 08-28-2003, 08:00 PM   #7 (permalink)
Registered User
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Roanoke, VA
Posts: 3,379
Scott Tiger is on a distinguished road
Quote:
Originally posted by DVNT1
As for doing similar using other OSes like Win9x and NT40, I'm no longer fluent in those areas.
Must be nice to be able to say that. We still have a large number of Windows 95 machines in the domain I help admin.
__________________
Registered Linux User: 288411
Licensed Windows XP User
Scott Tiger is offline   Reply With Quote
Old 08-28-2003, 08:03 PM   #8 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Quote:
Originally posted by DVNT1
If you have W2K/XP then get PSEXEC from http://www.systeminternals.com/ntw2k.../pstools.shtml (they have a lot of other great tools there too). This may be what Vass was thinking of.
yep that was it!

I know where to find it on OUR network
where it came from I'm not always so sure
vass0922 is offline   Reply With Quote
Old 08-29-2003, 12:59 PM   #9 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 3
glue_head is on a distinguished road
psexec

thanks for the help,

i've downloaded the file from the website, but i have a problem with psexec

i have copied the file to windows\system32\

when i tried this command

psexec \\hostname cmd

the reply is

countn't access hostname
access denied

what is going on here then.
glue_head is offline   Reply With Quote
Old 08-29-2003, 03:44 PM   #10 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
When I mentioned the "To use this you need appropriate rights on the remote computer."... the error you mentioned is a result of not having those rights to that computer over the LAN.

If you know an account name/pass on that computer then you can issue that in the command.

Example using Administrator account which has a password of MYPASS

psexec \\computer2 -u Administrator -p MYPASS c:\windows\notepad.exe

Last edited by DVNT1; 08-29-2003 at 03:46 PM.
DVNT1 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 03:49 AM.