Screen record using VLC - command line - windows xp [closed] - command-line

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
My objective is to start and stop screen record using VLC from command line.
For starting the screen recording, I used the following code:
vlc screen:// -I rc --screen-follow-mouse --screen-fps 5
:sout=#transcode{vcodec=WMV2,vb=1800,scale=1}:std{access=file,mux=asf,dst=output.wmv}
And for stopping the record I learned from the VLC forums that I have to use ncat for windows and my stop BAT file contents were
echo quit | "C:\Users\Jk\Desktop\Downloads\nc111nt\nc.exe" localhost 8088
But still the stop doesn't work. I also tried the following, but it makes the recorded video corrupted:
taskkill /IM vlc.exe
Also tried
vlc ://quit but it wont work as it was not started in one-instance mode.

To stop, just run:
vlc vlc://quit

Related

How to find port on windows (using pid or processes name) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 29 days ago.
Improve this question
How to find port on windows (using pid or processes name)
I know the PID, but I need the port on which the processes are running
you can use the following CMD command (Open it as administrator)
netstat -aon | findstr PID
There more different ways to find process port available here.
The accepted answer to the question that Nikita's answer links to - https://stackoverflow.com/a/48199/45375 - can be adapted to your needs with the following PowerShell command (assumes that the PID of interest is stored in $yourPid):
(Get-NetTCPConnection | Where-Object OwningProcess -eq $yourPid).LocalPort |
Select-Object -Unique
Note that even weeding out duplicates can result in multiple ports getting returned.
See also:
Get-NetTCPConnection

How command prompt works in all operating system [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How command prompt communicate with hardware
if i give mkdir command it will create the directory
how this command works internally
can i create own commands.
You need to notice the difference between the OS and the shell. Shell is only a user-land program. When you type a command, the command is the name of another program(or some built-in command in shell itself), shell find the corresponding program and execute it.
The operations at this level is much higher than hardware, it's just user-land program call.
For mkdir, you type which mkdir then will find the path of this program named mkdir. If you want to create your own, just compile your own program and run it from shell.
First of all MKDIR doesn't change the Directory it Makes the new directory.
& These program internally runs like a Bash Script/Batch File, which are few predefined codes in the OS.
You can create your own command by creating Batch File, For which you need Notepad, Little Programing Skill & Output Parameters you Want To Achieve.
This Link Might help Creating CMD File

Is there a command to restart computer into safe mode? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to know if there is a command that could be written in the command line to restart the computer and make it boot in safe mode?
If there isn't a command like this, is there any other way to do it?
I would like the process to be fully automated after launching the command.
My first answer!
This will set the safemode switch:
bcdedit /set {current} safeboot minimal
with networking:
bcdedit /set {current} safeboot network
then reboot the machine with
shutdown /r
to put back in normal mode via dos:
bcdedit /deletevalue {current} safeboot
In the command prompt, type the command below and press Enter.
bcdedit /enum
Under the Windows Boot Loader sections, make note of the identifier value.
To start in safe mode from command prompt :
bcdedit /set {identifier} safeboot minimal
Then enter the command line to reboot your computer.

How to run an application as "run as administrator" from the command prompt? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a batch file called test.bat. I am calling the below instructions in the test.bat file:
start /min powershell.exe %sysdrive%\testScripts\testscript1.ps1
When I run this through the command prompt, my testscript is running successfully. I want to run it as administrator (as if I have created a desktop shortcut and run as administrator. It shouldn't prompt for any username or password).
I have tried adding /elevate and /NOUAC parameters in the above test.bat, but no luck. How do I fix this issue?
I know how to do it manually, but I want this to be executed from the command prompt.
(By Marnix Klooster): ...without using any additional tools, like those suggested in an answer to Super User question How to run program from command line with elevated rights.)
Try this:
runas.exe /savecred /user:administrator "%sysdrive%\testScripts\testscript1.ps1"
It saves the password the first time and never asks again. Maybe when you change the administrator password you will be prompted again.
See this TechNet article: Runas command documentation
From a command prompt:
C:\> runas /user:<localmachinename>\administrator cmd
Or, if you're connected to a domain:
C:\> runas /user:<DomainName>\<AdministratorAccountName> cmd
It looks like psexec -h is the way to do this:
-h If the target system is Windows Vista or higher, has the process
run with the account's elevated token, if available.
Which... doesn't seem to be listed in the online documentation in Sysinternals - PsExec.
But it works on my machine.

FTP client command line put directory [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Is there a command line FTP client where you can upload a whole directory?
Or does anyone know how to make a bat file that uses window's ftp client to upload a directory?
Any thing would be helpful, thanks.
Try with WinSCP (see CLI docs) or NcFTP
Here's how you can do it in a batch file:
#ftp -i -s:"%~f0"&GOTO:EOF
open ftp.host.com
username
password
folder
mput "*.*"
disconnect
bye
replace the "parameters"(ftp.host.com, username, password, folder) with your own and save it as a .bat
Here's more information on ftp scripts in batch