[Ka...] Posted 2 hours ago Share Posted 2 hours ago Hello experts, We have around 1,500 programmes, the majority of which run via Autorun. To display the workpiece positioning status, we use ‘CNC → Measurement Sequence Information for CNC start-up'. This does not link directly to an image, but rather to a small script that launches a simple and secure image viewer. For historical reasons, this is a *.bat command script that has many drawbacks. We would like to replace it with VB/Perl/Python... However, to do this, we would have to open more than 600 programes manually to change the link from XXX.bat to, for example, XXX.vb. This is not an option. Simply call from this *.bat script a VB script lead to open an terminal window ( one of the big drawbacks..) for up to seconds. This should be mainly suppressed. Is there a way to run this change as a batch job? The entries are contained in the inspection/inspset files.. Best Regards Karsten Link to comment Share on other sites More sharing options...
[Ma...] Posted 2 hours ago Share Posted 2 hours ago I can handle that, but i would need to know what to do - what changes you need? Link to comment Share on other sites More sharing options...
[Ch...] Posted 10 minutes ago Share Posted 10 minutes ago Please sign in to view this quote. you can make the VBS script run in a hidden window by using the "0" parameter. For example, I run a lot of .bat files but I want the terminal window hidden from operators, so I use something like this. Set WshShell = CreateObject("WScript.Shell") WshShell.Run "cmd.exe /c C:\Path\To\your_file.bat", 0, False Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in