logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
fgolman  
#1 Posted : Tuesday, March 19, 2024 6:36:00 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 84
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
Tried this (based upon AI built code):

' Create a WshShell object
Set objShell = CreateObject("WScript.Shell")

' Specify the path to your batch file
batchFilePath = "C:\path\to\your\batch\file.bat"

' Run the batch file
objShell.Run batchFilePath, 1, True


Will not let me save, gives error that set and let are no longer supported. How can I accomplish this?


Thanks in advance for suggestions.

Fritz Golman
iHeartMedia
fgolman  
#2 Posted : Tuesday, March 19, 2024 12:56:10 PM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 84
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
UPDATE

This alternative script worked!

Dim psi As New ProcessStartInfo("c:\test.bat")
psi.RedirectStandardError = True
psi.RedirectStandardOutput = True
psi.CreateNoWindow = False
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.UseShellExecute = False

Dim process As Process = Process.Start(psi)


Not quite as simple but effective!


Fritz Golman
iHeartMedia
doggy  
#3 Posted : Tuesday, March 19, 2024 3:31:06 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,209
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: fgolman Go to Quoted Post
UPDATE

This alternative script worked!

Dim psi As New ProcessStartInfo("c:\test.bat")
psi.RedirectStandardError = True
psi.RedirectStandardOutput = True
psi.CreateNoWindow = False
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.UseShellExecute = False

Dim process As Process = Process.Start(psi)


Not quite as simple but effective!


Fritz Golman
iHeartMedia


Could it be a forum search would have been quicker ans simpler then AI ?

https://forums.vmix.com/...ng-for-Dummies#post88357

https://forums.vmix.com/...ng-for-Dummies#post93904
fgolman  
#4 Posted : Tuesday, March 19, 2024 8:04:26 PM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 84
United States
Location: Chicago

Thanks: 8 times
Was thanked: 3 time(s) in 2 post(s)
I did search but but for whatever reason was unsuccessful.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.