I need to launch a shortcut to a program (vlc.exe) and have it launch with certain attributes (it's quite a long string) and the target box will not accept enough characters. I need help finding another way to do so, I was wondering if you can launch a shortcut and attributes using a batch script? Or any other ideas?
To put it in context, I'm replacing my Firefox icon with a vlc shortcut to launch and record a 2 second snippet of who is using my computer when I'm away. The complete code I need is-
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" vlc dshow:// :dshow-vdev="Monitor Webcam" :dshow-adev="none" :dshow-size="640×480" :dshow-caching=1000 –run-time=2 -V dummy –intf=dummy –dummy-quiet :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst=C:\records\test1.ts} :sout-keep
But the target box maxes at-
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" vlc dshow:// :dshow-vdev="Monitor Webcam" :dshow-adev="none" :dshow-size="640×480" :dshow-caching=1000 –run-time=2 -V dummy –intf=dummy –dummy-quiet :sout=#transcode{vcodec=h264,vb=800,scale=1,acodec=mpga,ab=12
Best Answer
There is a dozen ways to do this. IF I were you I would set the whole nasty string as a System variable. I will try to explain.