Computer Hope

Software => Computer software => Topic started by: slack7639 on February 05, 2018, 06:27:36 PM

Title: NirCmd to Open and Close Skype fast
Post by: slack7639 on February 05, 2018, 06:27:36 PM
I found that these two BAT files work great to get into, and out of Skype fast, which is otherwise quite cumbersome.

Any idea why the first one works?  I figured it out by accident.  I was originally trying to do Tab, Enter, Paste the pw, enter:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

START "" "C:\Program Files (x86)\Skype\Phone\Skype.exe"

"C:\Program Files (x86)\NIRCMD\nircmdc.exe" clipboard set MySkypePassword

"C:\Program Files (x86)\NIRCMD\nircmdc.exe" closeprocess Windows Command Processor

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"C:\Program Files (x86)\NIRCMD\nircmdc.exe" closeprocess skype.exe

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Title: Re: NirCmd to Open and Close Skype fast
Post by: Geek-9pm on February 05, 2018, 08:21:24 PM
Did you read this:

Skype command line switches (https://winaero.com/blog/skype-command-line-switches/)
Quote
Skype is the most popular app for free audio and video calls via the internet. Despite this, not every Skype user knows that it supports numerous command line arguments which can improve your usage of Skype. Let's see which command line switches Skype has.
The command you need is:
Code: [Select]
"C:\Program Files(x86)\Skype\Phone\Skype.exe" /shutdown
For a 32 bit system it is in another place.  :)
Title: Re: NirCmd to Open and Close Skype fast
Post by: slack7639 on February 06, 2018, 07:51:45 AM
Thanks.  Here's what I see with these:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The DOS window stays open . . . and /nosplash doesn't do anything:

"C:\Program Files (x86)\Skype\Phone\Skype.exe" /nosplash /username:MyUserName /password:MySkypePassword

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Use . . . START "" . . . at the beginning, then the DOS window auto closes

START "" "C:\Program Files (x86)\Skype\Phone\Skype.exe" /username:MyUserName /password:MySkypePassword

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

In my case, make sure there's a space between "Files" and "(x86)"

"C:\Program Files (x86)\Skype\Phone\Skype.exe" /shutdown

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

NirCmd seems to work a little faster for both
Title: Re: NirCmd to Open and Close Skype fast
Post by: DaveLembke on February 06, 2018, 09:03:25 AM
Curious what your doing this for as for it could be used this way to remotely start skype elsewhere?

Starting skype when your at a computer is simple, you can even have the service running always ready to answer/connect quickly when running as a task that starts when computer boots.

What you have here is as if skype is not running in taskbar as a service ready to connect and your instead just targeting the EXE of it and passing data to it to start it and have ability to close it, which to me points out remote control possibilities of skype elsewhere maybe?


Are you trying to spy on someone that you have username and password to control their skype?
Title: Re: NirCmd to Open and Close Skype fast
Post by: slack7639 on February 10, 2018, 06:03:42 PM
No, it's just faster to open and close, and that's what I want to do, have it open or closed, not in the Notification Area.
Title: Re: NirCmd to Open and Close Skype fast
Post by: slack7639 on February 10, 2018, 06:09:26 PM
[check] Notify of replies . . .