I have a perl script that takes 2 arguments. The script connects to a database to retrive some data. I want to use batch file to call this script.
in my batch file, i have:
c:\perl\bin\perl myperl.pl arg1 arg2
Problem: if i manually type in the batch filename in the dos-prompt, the script runs perfectly. But if I just double click the batch file, on the popped up dos prompt window, I get an error saying access denied to connect to the database.
Can someone pls help? Thanks.