Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help required to send open command to remote system using PSEXEC

Posted on 2006-11-22
4
Medium Priority
?
237 Views
Last Modified: 2011-09-20
Hi,

 When I enter the following code into cmd or in a batch file and run locally, it works perfectly:

"C:\Program Files\Adobe\Adobe After Effects 7.0\Support Files\AfterFX.exe" "-wf  V:\01_AE_Watch_Folder\"

However trying to use the above line with PSEXEC to open the ap remotely like this:

psexec \\IP_Address -i -s "C:\Program Files\Adobe\Adobe After Effects 7.0\Support Files\AfterFX.exe" "-wf  V:\01_AE_Watch_Folder\"

Opens the AfterFX.exe fine but doesn't open it in Watch Folder mode which it does when I either run the batch file locally or by pasting the first line of code into cmd as mentioned above.

any ideas?

Thanks
0
Comment
Question by:sany101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 43

Expert Comment

by:Steve Knight
ID: 18001140
I imagine the drive V: isn't  avaialble to it?  Havent got the syntax to hand to check but I imagine that will run it as a local system user and not the currently logged in user.  You could copy a batch file containing a net use command for v: then run your commandline or run it against a local c: path I guess.  There is an option to copy and run a batch using psexec afai rememeber.

Can't check correct syntax at the moment because I'm on a pda but I seem to remember an option to run psexec as the logged on user?

0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 2000 total points
ID: 18001170
Right checked ...

-c option will copy the file first.  You can't specify logged on user, only a speciifc user using -user so I think you need to map the drive first:

So batch file on your system or network drive somewhere then run it with the -c option:

psexec \\IP_Address -I -c c:\scripts\yourbatch.cmd

@echo off
rem Run the prog remotely
net use v: \\server\share /user:username password
"C:\Program Files\Adobe\Adobe After Effects 7.0\Support Files\AfterFX.exe" "-wf  V:\01_AE_Watch_Folder\"
rem Should delete the batch file once run
del %0
0
 

Author Comment

by:sany101
ID: 18002298
Awsome!! Thanks you so much

regards

Sany
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 18002325
No problem,

Steve
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question