Just replace "program.exe" with the full path to the executable and put your command line arguments in place of "CommandLine Arguments". If you don't have any arguments, just leave the "arguments" attribute out.
The Database Server and the File are not on the same machine.
I've a DTS-Package, which is on the Database machine and a .bat-file on the other machine. If I start the .bat-file from dos-shell, it makes, what I would like, if I start it through a cf-file, it doesn't work.
It sounds like either a permissions problem or a mapping problem. If you are logged into the server running CF, do you have a drive mapped to the other machine so that CF can access the remote machine or is this unnecessary? Also, is CF set to run under an account that has permission to run the script against the db server?
It would also help if you could post the .bat file as they may give me a clue as to what's wrong.
Are you saying that the db server has to map a drive to the CF server? It seems like it's usually the other way around when CF needs to access something remotely. If it's the CF server that needs to map a drive, you could always put a "net use" command inside the bat file which can map and unmap a drive when it runs. Another alternative is to setup CF to run under an account that can map the drive and then setup a mapping that CF will use when it runs. This is a little trickier so let me know what you think will work best for you.
oh, it was my mistake. Sure, I map from the cf-server to the db-server
My problem was, that the domain of the db-server and the cf-server are not at the moment in the same domain, so Ihad to map from the cf-server to the db-server.
But, if the cf-server crashs, then I've to map again, thats my problem, solong, the db-server is not in the same domain. I hope we'll get the db-server soon in the same domain, then we'll not have problem like this.
I've always meant to learn more about them but .bat files have always been one of my weaknesses. I did find a quick reference that might help though. If you find anything better, let me know as I could use it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.