Solved

Help required to send open command to remote system using PSEXEC

Posted on 2006-11-22
4
231 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
A short film showing how OnPage and Connectwise integration works.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

947 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

20 Experts available now in Live!

Get 1:1 Help Now