Jump to content

Recommended Posts

Posted

Hello,

I've some troubles whit the run command.

Below u see 2 command's , 1 is working and the other not. (the first isn't working)
I think the problem is in te space between program and files.Also I've treid every thing i could think of or the helpfiles handed to me.
(or maybe I din't find the correct answer:))
I tried so mush that i don't know anymore if it's the space between program files or not.

Could somebody point me in the right direction?

Not working:

Run(@ComSpec & " /c psexec -i \\127.0.0.1  -u username -p pass -h -d /accepteula C:\Program Files\some_prog\Shell.exe" ,"C:\tools", @SW_HIDE)

Working :

Run(@ComSpec & " /c psexec -i \\127.0.0.1  -u username -p pass /accepteula cmd" , "C:\tools" , @SW_HIDE)

 

 

 

 

 

 

 

as finishing touch god created the dutch

Posted

I've tried this indeed, but unfortanaly this gives me back : "C:\Program Files(x86)" instead of the "C:\Program Files" i need. :)

as finishing touch god created the dutch

Posted

Run('psexec -i \\127.0.0.1  -u username -p pass -h -d /accepteula "C:\Program Files\some_prog\Shell.exe"' ,"C:\tools", @SW_HIDE)

How about when using correct command line quotation above for space tolerance? 

wtfpl-badge-1.png

Posted

This totaly did the trick @Mobius .

I was to focused on the quotation of the program files.
Now everything is working just fine.....

many thanks and thumbs up.

as finishing touch god created the dutch

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...