Jump to content




Weirdest Error/Glitch Ever (I don't even know)


  • You cannot reply to this topic
14 replies to this topic

#1 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 04:13 PM

There is a glitch in my code...and I can not fix it. It is an Explorer App. And when I click on a file, it says "No Such Program", except for if I haven't clicked on a folder yet. This is the code:
http://pastebin.com/M47EVgyW
Take that code and use it, click on a folder, like rom. Then click on a file. and you get "No such Program".
I don't know what the reason is. But it seems to happen, if there was a fix, that'd be great!

#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 19 April 2015 - 04:16 PM

Have you tried to look at the code yourself and debug it?

shell.run(directory.."/"..Exlist[i].Name) <-- here


#3 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 04:16 PM

Yes, I did.
Oh... :(
Man, I didn't see a typo. I feel like an idiot. But It still says "No such program"

Edited by Lightning, 19 April 2015 - 04:17 PM.


#4 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 19 April 2015 - 04:17 PM

And what was the value of 'Exlist[i].Name'?

#5 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 04:18 PM

View PostMKlegoman357, on 19 April 2015 - 04:17 PM, said:

And what was the value of 'Exlist[i].Name'?
It was accually list[i].Name, that was a typo. But, it's the files name. like "Startup"

#6 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 19 April 2015 - 04:24 PM

Have you checked the output of:

print( directory.."/"..list[i].Name )

Edited by MKlegoman357, 19 April 2015 - 04:24 PM.


#7 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 04:25 PM

View PostMKlegoman357, on 19 April 2015 - 04:24 PM, said:

Have you checked the output of:

print( directory.."/"..list[i].Name )
No, but I've done: print(list[i].Name)

EDIT:
I clicked Programs.
and I got:
rom/programs

and: Why is google a user on here?

Edited by Lightning, 19 April 2015 - 04:28 PM.


#8 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 04:33 PM

Uh, can you guys help pls.

#9 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 19 April 2015 - 05:27 PM

If you used print(list[i].Name) and it printed out rom/programs, then the reason you're getting no such file is that directory is probably rom as well, so you're printing out rom/rom/programs

#10 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 05:32 PM

View PostDragon53535, on 19 April 2015 - 05:27 PM, said:

If you used print(list[i].Name) and it printed out rom/programs, then the reason you're getting no such file is that directory is probably rom as well, so you're printing out rom/rom/programs
I used print(directory.."/"..list[i].Name) and got "rom/programs"

#11 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 19 April 2015 - 05:41 PM

And you're trying to shell.run rom/programs?

Edit, no i'm a derp

Edit2: What line is this print on?

Edited by Dragon53535, 19 April 2015 - 05:48 PM.


#12 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 19 April 2015 - 06:35 PM

It's on line 128 of the pastebin.

I'd recommend printing the directory too.

#13 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 19 April 2015 - 06:47 PM

View PostKingofGamesYami, on 19 April 2015 - 06:35 PM, said:

It's on line 128 of the pastebin.

I'd recommend printing the directory too.
He hasn't updated the pastebin from what he's given us. That pastebin is his first try and it was pasted on a guest account.

#14 PixelFox

  • Members
  • 106 posts

Posted 19 April 2015 - 07:10 PM

http://pastebin.com/yX2feEXi < This is the new code.

Edited by Lightning, 19 April 2015 - 07:13 PM.


#15 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 19 April 2015 - 07:11 PM

View PostLightning, on 19 April 2015 - 04:25 PM, said:

and: Why is google a user on here?

If I had to guess, I'd say its so that google can search the forums for results





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users