Jump to content
Sign in to follow this  

error in my script

Recommended Posts


my friend got strange error while he use my script

Posted Image

my script was tested on 10 PC and it work fine, no error at all

only my one friend got this error...

any idea what it's going about?

edit:my script got 5,5k lines so i choose not post it here

Edited by Dag

Share this post

Link to post
Share on other sites

No problem, i've located the error.

Line 15: Dim $theArray[1]

Line 16: $theArray[2] = "We can't fix code that we can't see, please post at least a snippet"

Share this post

Link to post
Share on other sites

Yes I agree a code snippet would really be helpful

But I can give you something to look at because of which code runs on one machine and not on another

If the script involves reading through file then sometimes the context in which the script gets executed is important.

For example if you use relative file path instead of the absolute one and try to run script remotely using a remote execution tool.

So the relative path context changes so you might want to specify the working directory explicitly or use absolute path

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.