Can You Explain This

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Can You Explain This

Post by CyberCitizen » Mon Mar 20, 2017 3:29 am

Reading The Exact Same File, Yet Getting ##NOFILE##. Any Suggestions?

Image
FIREFIGHTER

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Can You Explain This

Post by Marcus Tettmar » Mon Mar 20, 2017 9:00 am

Well since we can't see your code, no, we can't really explain this.

However, you have an error on line 73 - invalid numeric value. Perhaps this is your line counter. Perhaps this has some bearing on the file or line you are trying to read and that is having a nock on effect.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Can You Explain This

Post by CyberCitizen » Mon Mar 20, 2017 9:37 am

That's just a mouse move to a location but didn't specify it.

The image is there, forum cut it off.
FIREFIGHTER

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Can You Explain This

Post by Marcus Tettmar » Mon Mar 20, 2017 12:10 pm

Some other process must be locking/deleting the file while this script is running.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Can You Explain This

Post by CyberCitizen » Mon Mar 20, 2017 12:29 pm

That's just it the script creates the file, nothing in the script to delete the file, iis still there, it reads the first 2 lines but not the others.
FIREFIGHTER

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Can You Explain This

Post by Marcus Tettmar » Mon Mar 20, 2017 12:55 pm

Virus checker - checking the file once it has been created, while the script is then trying to read from it? Can you create a small script to replicate? That we could run here? What happens if you create the file somewhere else other than temp?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: Can You Explain This

Post by Djek » Tue Mar 21, 2017 11:33 pm

Looks simple to me that,
first you open a file named %vSeqNum%.txt
and then you define VseqNum to the value "Sequence no 59749833"
And I guess you do not have a file namend like that and this file he tries to read.

kind regards,
Djek

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Can You Explain This

Post by CyberCitizen » Tue Mar 21, 2017 11:38 pm

Awesome, thank you djek, that is exactly it.

Some typo, thanks for that.
FIREFIGHTER

User avatar
Djek
Pro Scripter
Posts: 147
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: Can You Explain This

Post by Djek » Tue Mar 21, 2017 11:51 pm

your welcome !
:D

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Can You Explain This

Post by Marcus Tettmar » Wed Mar 22, 2017 8:13 am

Can't believe I missed that. Well done!
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Can You Explain This

Post by CyberCitizen » Wed Mar 22, 2017 8:49 am

Give that man a cookie. Such a simple typo, don't code when busy at work.

Sent from my Redmi Note 3 using Tapatalk
FIREFIGHTER

thelifeofapanca
Newbie
Posts: 1
Joined: Sat Mar 25, 2017 9:55 am
Contact:

Re: Can You Explain This

Post by thelifeofapanca » Thu Mar 30, 2017 10:53 am

Wow!!! Thank you very much :)

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts