Search found 7 matches

by Davd K
Sat May 21, 2005 3:35 am
Forum: Technical / Scripting
Topic: read file for a string and print the line to a file
Replies: 1
Views: 3393

read file for a string and print the line to a file

I want to ask for the string. Search the file for that string. If the string is located in the file, write the line to a new file. Here is an example of a line in the file. 5/11/2005 8:20:21 PM Print Information None 10 NT AUTHORITY\SYSTEM PMLPRINT Document 436, Microsoft Word - owned by bkennedy wa...
by Davd K
Thu Jul 15, 2004 3:07 pm
Forum: Beginners
Topic: Edit ini file
Replies: 5
Views: 11804

I do understand how to read in the line but once I have the line I need to go over to column 70 and 71 and check to see if the letters DI are in those columns. If DI is there, the line should be deleted. Once that is finished, I need to edit the file again and replace anything in columns 3 - 12 with...
by Davd K
Wed Jul 14, 2004 3:04 pm
Forum: Beginners
Topic: Edit ini file
Replies: 5
Views: 11804

This isn't a "typical" ini file that has sections in it. It is just a basic txt file that I need to do this to.

How would I read each line in a basic txt file?
by Davd K
Tue Jul 13, 2004 6:40 pm
Forum: Beginners
Topic: Edit ini file
Replies: 5
Views: 11804

Edit ini file

I want to check an file at a particulat column and if the certain characters appear, delete the entire line.

Then I need to edit each line at particular columns to replace the text with my new text.

How do I do this?
by Davd K
Sat Jun 19, 2004 3:46 am
Forum: Beginners
Topic: how do I get macro scheduler to press ctrl-alt-del
Replies: 7
Views: 15609

Shutdown dialog

Bob,
Thanks for the info. Could you send em the dialog piece of your script so I can take a look at it. I also need to prompt them for what they would like to do and I was thinking I could have them check off boxes instead of asking them question after question.
Thanks, Dave
by Davd K
Wed Jun 16, 2004 4:06 am
Forum: Beginners
Topic: how can I change the titel bar in my exe?
Replies: 1
Views: 6407

how can I change the titel bar in my exe?

How do I change the title bar in my exe when it stops to ask for user input?
by Davd K
Wed Jun 16, 2004 4:04 am
Forum: Beginners
Topic: how do I get macro scheduler to press ctrl-alt-del
Replies: 7
Views: 15609

how do I get macro scheduler to press ctrl-alt-del

I want to run an exe from the task scheduler but would like to logoff the computer. Thus I would need to have the exe press ctrl-alt-del to get the password box up and then script the logon credentials.

How can I do this?
cron
Sign up to our newsletter for free automation tips, tricks & discounts