Search found 9 matches

by radiantracy
04 Jan 2013 22:47
Forum: DOS Batch Forum
Topic: How to jump to the root directory from current directory
Replies: 11
Views: 13029

Re: How to jump to the root directory from current directory

thanks a lot. working on all the possibilities posted.
by radiantracy
02 Jan 2013 01:24
Forum: DOS Batch Forum
Topic: How to jump to the root directory from current directory
Replies: 11
Views: 13029

Re: How to jump to the root directory from current directory

Hi john924xps, I tried cd.. but its not moving to the root directory.

SET ARGUMENTS=%1

The %1 is fetched from the console of another application which gives oly the program directory say C:/Workspace/Project.
I want the arg to be replaced with C:/Workspace.
by radiantracy
02 Jan 2013 01:08
Forum: DOS Batch Forum
Topic: How to jump to the root directory from current directory
Replies: 11
Views: 13029

How to jump to the root directory from current directory

Hi, My requirement is that if I am in C:/Test/Folder1/Folder2, the batch command shud jump to C:/Test/Folder1. What is the batch command to do the same. My code is : SET ARGUMENTS=%1 Set PROJROOTFOLDER=%ARGUMENTS% popd ECHO %PROJROOTFOLDER% here %1 gets arg from user and it shud jump to the previous...
by radiantracy
30 Dec 2012 12:18
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Re: Merging text files in a folder to a single text file

ya u r right but in my project the order of the files does not matter much. But the query u have raised also matters. working on it !
by radiantracy
30 Dec 2012 12:03
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Re: Merging text files in a folder to a single text file

Hi Squashman,

The code is working fine. The content in the txt files are copied and written to the new file based on the order in the directory.
by radiantracy
30 Dec 2012 00:46
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Re: Merging text files in a folder to a single text file

Thanks Foxidrive. The code works like a charm. :P
by radiantracy
30 Dec 2012 00:42
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Re: Merging text files in a folder to a single text file

thanks a lot ! will work on this and post a reply soon.
by radiantracy
30 Dec 2012 00:25
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Re: Merging text files in a folder to a single text file

sorry to ask..im very new to this batch commands.

The batch file is executed in a different folder from where the text files are present.
So the code you posted will work in that condition too ?
by radiantracy
30 Dec 2012 00:10
Forum: DOS Batch Forum
Topic: Merging text files in a folder to a single text file
Replies: 10
Views: 7169

Merging text files in a folder to a single text file

Hi all, My requirement is to read all the text files in a folder ( say there are 10 *.txt files in D:\TextFiles ) and merge all the text files to a single file ( say output.txt ). The output file should be in such a way that the contents should be copied in the same order the file was read. Can some...