Solved

Help required to send open command to remote system using PSEXEC

Posted on 2006-11-22
4
230 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
  • 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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Learn about cloud computing and its benefits for small business owners.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now