Search found 13 matches

by jmituzas
13 Oct 2010 13:21
Forum: DOS Batch Forum
Topic: (SOLVED-again) Write each line of text to newtext.txt
Replies: 10
Views: 11285

Re: Write each line of text to newtext.txt (re-opening threa

figured out how to check right from excel: http://www.excelforum.com/excel-programming/748839-exporting-worksheets-as-tab-delimited-text-vbs.html Sub LipoSuction() 'JBeaucaire (8/3/2009) Dim LR As Long, LC As Long Dim ws As Worksheet For Each ws In Worksheets LR = ws.Range("A" & ws.Row...
by jmituzas
11 Oct 2010 07:57
Forum: DOS Batch Forum
Topic: How do I launch a script on a remote machine?
Replies: 1
Views: 3480

Re: How do I launch a script on a remote machine?

I have found this link which may help you out: http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/49357953-61a7-4bc3-9cfd-ddee4a321fa8 Your best approach is to do the following using WMI: 1. Invoke Win32_Process 2. In the remote process, use a cmd call and dump to a text file on the remot...
by jmituzas
06 Oct 2010 06:42
Forum: DOS Batch Forum
Topic: (SOLVED-again) Write each line of text to newtext.txt
Replies: 10
Views: 11285

Re: Write each line of text to newtext.txt

If line is line 1, stores it in a variable. If not line 1, puts line 1 variable plus current line of "my text.txt" into it's corresponding "file #.txt". Does not include blank lines. setlocal enabledelayedexpansion for /f "usebackq delims=" %%x in ("my text.txt&qu...
by jmituzas
31 Aug 2010 11:35
Forum: DOS Batch Forum
Topic: .bat or .vbs Find within text and Rename File
Replies: 1
Views: 3285

.bat or .vbs Find within text and Rename File

I have outputted some text files all in the same directory. Each .txt file has within a group number, this number always starts with RXC and can go upwards of 5 characters afterwards, giving us RXCXXXXX i need the script to find this RXC number and rename the file to its corresponding group number, ...
by jmituzas
31 Aug 2010 11:33
Forum: DOS Batch Forum
Topic: (SOLVED) .bat If Then statement
Replies: 3
Views: 5462

Re: .bat If Then statement

Solved

if not exist newfile.txt goto skip
del "InDesignData.txt"
ren "newfile.txt" "InDesignData.txt"
:skip
by jmituzas
31 Aug 2010 11:32
Forum: DOS Batch Forum
Topic: (SOLVED) .bat Find and Replace text
Replies: 3
Views: 5188

(SOLVED) .bat Find and Replace text

I found the solution http://www.dostips.com/?t=Batch.FindAndReplace had to rewite it a bit to actually get the job done. I am sure there is an easier way of doing this but I got it to work call BatchSubstitute.bat Program @Program InDesignData.txt >newfile.txt if not exist newfile.txt goto skip del ...
by jmituzas
31 Aug 2010 11:15
Forum: DOS Batch Forum
Topic: (SOLVED) .bat If Then statement
Replies: 3
Views: 5462

(SOLVED) .bat If Then statement

I need help with writing a batch script for

if file newfile.txt exists
then del "InDesignData.txt" ren "newfile.txt" "InDesignData.txt"

Thanks in advance, Joe
by jmituzas
31 Aug 2010 09:14
Forum: DOS Batch Forum
Topic: (SOLVED) .bat Find and Replace text
Replies: 3
Views: 5188

Re: .bat Find and Replace text

It's not too hard to write the batch for that if those words aren't mixed in with a bunch of other data, since it would just require comparing 5 tokens to 5 words, but DOS needs to rewrite each file too. I'm betting on this being easier for gawk (ghostmachine), I'm too tired to write anything right...
by jmituzas
31 Aug 2010 07:50
Forum: DOS Batch Forum
Topic: (SOLVED) .bat Find and Replace text
Replies: 3
Views: 5188

(SOLVED) .bat Find and Replace text

I have some files that contain some of if not all of the following:

Program RxBIN RXPCN RxGroup MemberID

not all files will have all of those headers but the ones that do I will need to replace so it looks like this:

@Program @RxBIN @RXPCN @RxGroup @MemberID


Thanks in Advance,
Joe
by jmituzas
31 Aug 2010 06:07
Forum: DOS Batch Forum
Topic: (SOLVED-again) Write each line of text to newtext.txt
Replies: 10
Views: 11285

Re: Write each line of text to newtext.txt

Thanks orange_batch once again!

Now I have the script to automate the complete Adobe InDesign Data-merge process.
by jmituzas
30 Aug 2010 13:37
Forum: DOS Batch Forum
Topic: (SOLVED) Merging files .bat
Replies: 2
Views: 3877

(SOLVED) Merging files .bat

I have a file called header.txt I want this file to be prepended (first line) to all *.txt files in the same directory.

How could I achieve this?

Thanks in advance,
Joe
by jmituzas
30 Aug 2010 11:49
Forum: DOS Batch Forum
Topic: (SOLVED-again) Write each line of text to newtext.txt
Replies: 10
Views: 11285

Re: Write each line of text to newtext.txt

Thanks for quick reply. One more thing I need to do with this script is to output the first line of text along with these files we just outputted. example of my text.txt file line1 want to output to file 1.txt line1 + line2 to 2.txt line1 + line3 to 3.txt line1 + line4 to 4.txt is this possible or d...
by jmituzas
30 Aug 2010 08:52
Forum: DOS Batch Forum
Topic: (SOLVED-again) Write each line of text to newtext.txt
Replies: 10
Views: 11285

(SOLVED-again) Write each line of text to newtext.txt

I need help with the following: I have a tab delimited txt file that I need help exporting further. This file may be between 2 - 50 lines of code. What I need it to do is either create each line of text to its own .txt file. each numbered by its line number within the text file. example: line1 want ...