Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Help required to send open command to remote system using PSEXEC

Posted on 2006-11-22
4
Medium Priority
?
238 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 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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…
Learn about cloud computing and its benefits for small business owners.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

772 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