Jump to content

Recommended Posts

Posted (edited)

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
Posted

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"

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...