Solved

Help required to send open command to remote system using PSEXEC

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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