There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware monitor motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windows xp windowsxp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Need help with a script or program


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
prodsupptech's Avatar
Senior Member with 271 posts.
 
Join Date: Feb 2004
Experience: Pretty Savvy
18-Oct-2004, 11:05 AM #1
Need help with a script or program
Anyone,
I am in the process of trying to figure out how to make a program that takes a column of numbers and puts it in a row so I can search for it using Windows Search. i.e.
Before
######
######
######
######
######
######
After ######.tif, ######.tif, ######.tif, etc
I can handle the .tif part I believe I just need to get it to go horizontal. Let me know if this is even possible to do.

Thanks
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
18-Oct-2004, 11:16 AM #2
You need to take whatever columnar text you have and convert it to a string seperated by commas. I don't think Windows search will look for strings inside of a text file.
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
18-Oct-2004, 11:23 AM #3
Quote:
Originally Posted by Rockn
I don't think Windows search will look for strings inside of a text file.
Yes it will
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
18-Oct-2004, 11:45 AM #4
Quote:
Originally Posted by Gibble
Yes it will
Yep, the "Containing text:" box.
prodsupptech's Avatar
Senior Member with 271 posts.
 
Join Date: Feb 2004
Experience: Pretty Savvy
18-Oct-2004, 11:53 AM #5
I never said we would search inside a text file. That would only find the text file we are searching for. What I should have said is once it converts the vertical format to a horizontal format and we add the .tif, then we copy it and paste into Windows search. That's what I need to do. Doing a search for containing text will only find the name of the file since the tif number is meaningless besides being the filename.
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Oct-2004, 11:59 AM #6
Hmm, another thing I could easily do in a Bash Script. I really have to learn Windows Batch scripting or VB one of these days.
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
18-Oct-2004, 11:59 AM #7
Try this.

usage: for_search.exe [source file] [target file] [extension]

eg.

for_search file.txt newfile.txt .tif

The row version would be in newfile.txt

You can also overwrite the current file if you wanted to.

It should handle invalid lines pretty well, but it's not thoroughly tested.

Last edited by Shadow2531 : 18-Oct-2004 01:35 PM.
prodsupptech's Avatar
Senior Member with 271 posts.
 
Join Date: Feb 2004
Experience: Pretty Savvy
18-Oct-2004, 02:09 PM #8
Shadow!!!! Hell yeah...Thank you so much that is what I'm looking for exactly...you are the man.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:01 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.