Problem with macro. Need Help, PLEASE!

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Problem with macro. Need Help, PLEASE!

Post by PepsiHog » Sat Jan 09, 2010 9:57 am

Hey! Everyone!

Need some help. I'm writting this macro for my nephew. Everything is working as expected except for one thing. I can't for the life of me figure this one out.

The line in question is an EditInIFile command. For some reason It won't edit the file. I had it working at one point, but it seems as though it just decided not to work.

I have multiple EditInIFile commands in this macro, and they all work but this one.

The line in question is close to the bottom of the macro. I left the macro untouched. I was going to clean it up some, but thought that might defeat the point. So forgive all the Remarks and Remarked out commands.

I surrounded the statement with forword slashes, to make it easy to spot.
At the Begining there is a variable FPath, change the path to where ever you place the config.ini file. (also encluded - at Bottom)

I'm really scratching on this one! :)

Thanks for the help, everyone!

Code: Select all





Problem solved.  Disregard.  But thanks.
Last edited by PepsiHog on Sat Jan 09, 2010 7:48 pm, edited 1 time in total.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Jan 09, 2010 7:02 pm

You have provided too much code to go through, I did see multiple EditIni lines, but the one with the problem is not identified. So here are some quick normal approaches to help identify the trouble.......

When troubleshooting, did you:

1. Single step through and look at the values of the variables in the EditIin command?

2. Did you read a log file and look at the values of the variables in the EditIni command?

3. Have you tried putting %......% around your variables?

4. Have you removed unwanted trailing spaces?

5. Do you have permissions to edit the file in its location?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

I got it fixed.

Post by PepsiHog » Sat Jan 09, 2010 7:43 pm

The problem line looks like this (or the line I thought was the problem)

//////////////////////////////////////
problem line
/////////////////////////////////////


It's just above the end of the script.

Yes, I did. But it evaded me. However, a fresh set of eyes, after a long night sleep, and I have located the problem. It works now.

But thank you for the advice.

Yeah, It's a tic bit long. Over 400 lines! But it works! (Now it does!)

I've had MS for just over 2 years, so I believe I'm still learning.
Not a slow learner, just have other things to do. (Usually)
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

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