Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by maverickxx
at 2024-07-25 17:36:43
Point:500 Replies:9 POST_ID:829111USER_ID:12008
Topic:
Windows Batch Scripting;Scripting Languages;Microsoft Windows Operating Systems
Hi,
I am trying to use ftp windows batch script to move files from one windows server(2008 r2 ) to multiple windows Server 2008 machines.
I have an ftp script which transfers the files, but I want to execute a remote batch script after I ftp files.
is there a way to execute a command or run a batch file on remote server.
Note:
1. source and destination machines are windows server 2008 r2.
Sidebar:
2. I tried psexec but I am getting error "Make sure that the default admin$ share is enabled on ,,,"
I have followed instructions for enablign admin$ but doesnt work..
I am trying to use ftp windows batch script to move files from one windows server(2008 r2 ) to multiple windows Server 2008 machines.
I have an ftp script which transfers the files, but I want to execute a remote batch script after I ftp files.
is there a way to execute a command or run a batch file on remote server.
Note:
1. source and destination machines are windows server 2008 r2.
Sidebar:
2. I tried psexec but I am getting error "Make sure that the default admin$ share is enabled on ,,,"
I have followed instructions for enablign admin$ but doesnt work..
Expert: rastoi replied at 2024-07-28 00:14:38
In such case it is most probably either target local or network firewall.
If you will be not able to sort network connectivity, you can monitor locally on target filesystem at trigger desired script based on file presence/change.
If you will be not able to sort network connectivity, you can monitor locally on target filesystem at trigger desired script based on file presence/change.
Author: maverickxx replied at 2024-07-27 23:45:40
@rastoi
I am not able to ping the server "request timed out " . however I am able to ftp into it. I am using servername for ftp script.
I am not able to ping the server "request timed out " . however I am able to ftp into it. I am using servername for ftp script.
Expert: rastoi replied at 2024-07-27 23:37:24
Can you ping servername? Which address are you using for ftp? IP?
Author: maverickxx replied at 2024-07-27 22:55:18
@rastoi
I got this error when I tired "net use"
System error 53 has occurred.
The network path was not found.
I got this error when I tired "net use"
System error 53 has occurred.
The network path was not found.
Expert: rastoi replied at 2024-07-27 22:28:00
To check connectivity show us the output of command:
Net use \<servername>ipc$ /user:domainusername
You should be prompt for password
Net use \<servername>ipc$ /user:domainusername
You should be prompt for password
Author: maverickxx replied at 2024-07-27 14:25:25
@rastoi
my remote script
a)remote to server running psexec, local to target
my remote script
a)remote to server running psexec, local to target
Author: maverickxx replied at 2024-07-27 14:23:59
@duncanb7
Command used was this
Command used was this
c:SoftwarePSTools>psexec \<Servername> -u domainuser-name-p <my_password> cmd /c "C:Users<some_user> estMovefile.bat"PsExec v2.11 - Execute processes remotelyCopyright (C) 2001-2014 Mark RussinovichSysinternals - www.sysinternals.comCouldn't access <servername>:The network path was not found.Make sure that the default admin$ share is enabled on server_name 1:2:3:4:5:6:7:8:9:10:11:
for Proof of Concept purposes I used a simple file called Movefile.bat which copies file from one location on remote server to anther.
Movefile.bat is located on remote server
Expert: rastoi replied at 2024-07-26 04:55:42
your remote script is:
a) remote to server running psexec, local to target
b) remote to target and local to server running psexec
c) remote to both ?
a) remote to server running psexec, local to target
b) remote to target and local to server running psexec
c) remote to both ?
Expert: duncanb7 replied at 2024-07-26 01:59:25
What the exact command you run for psexec ?
psexec \machine -u DOMAINUser -p Password -i "C:FilePathApplication.exe" argument1 argument2"
Could you send the whole command error output to us ?
Duncan
psexec \machine -u DOMAINUser -p Password -i "C:FilePathApplication.exe" argument1 argument2"
Could you send the whole command error output to us ?
Duncan