Hi there,
I wrote a macro which is creating a bat file with values from excel cells and calling it as well. The excel and bat file are placed on a network server. Everything is working perfectly(writing the bat file, calling it, running the commands in cmd) when I run it from my workstation.
If I try to run it from a different network workstation it writes the bat file, the cmd window appears on screen for one second, but nothing happens after (I have to run separately the created bat file to get the final result). Why is happening this? Any ideas, please?
I am calling the bat file with shell function. I also tried to call it with Windows Script Host Run method, but the same result.
below are the last two lines (retVal keeps the bat file location):
Call Shell(retVal, 1)
End Sub
Any help would be much appreciated because is driving me crazy...
I wrote a macro which is creating a bat file with values from excel cells and calling it as well. The excel and bat file are placed on a network server. Everything is working perfectly(writing the bat file, calling it, running the commands in cmd) when I run it from my workstation.
If I try to run it from a different network workstation it writes the bat file, the cmd window appears on screen for one second, but nothing happens after (I have to run separately the created bat file to get the final result). Why is happening this? Any ideas, please?
I am calling the bat file with shell function. I also tried to call it with Windows Script Host Run method, but the same result.
below are the last two lines (retVal keeps the bat file location):
Call Shell(retVal, 1)
End Sub
Any help would be much appreciated because is driving me crazy...