Please help me create a txt
Moderator: DosItHelp
Re: Please help me create a txt
now you lost me, you are trying to get all folders in the C:\ so you put the title.txt and the batch together in the C:\
and then run the batch and it should run with no problems.
so the files should have this locations:
c:\batch.bat
c:\Title.txt
and then run the batch and it should run with no problems.
so the files should have this locations:
c:\batch.bat
c:\Title.txt
Re: Please help me create a txt
By manipulating the environment variables I'm able to run a .bat, that is located on my C:, on an external hard drive ie E: when it is the active directory.
Re: Please help me create a txt
You're not very helpful, mate, when you can't do the job by yourself and are asking others to work on your behalf.
Re: Please help me create a txt
goymerac wrote:By manipulating the environment variables I'm able to run a .bat, that is located on my C:, on an external hard drive ie E: when it is the active directory.
If you said that from the beginning we could have made that batch to take input from the cmd window like taking the location you want to get it's info so it look like this in the cmd window:
Code: Select all
C:\Documents and Settings\Admin-PC\Desktop>batch.bat "C:"
and it will then print the information and log it to the log file in that location
Re: Please help me create a txt
My apologies, I'm in completely new territory with this. Thanks for all your help.
Re: Please help me create a txt
'm glad it works now 

Re: Please help me create a txt
Just a tip: when you give complete and actual data and descriptions of what you want then the people here can use their experience to think of the best way to achieve it.
The first time I read your original post I was struck by the lack of details and descriptions of what you wanted to do - hence I didn't reply.
EG: You wanted a listing. You didn't say if you wanted a brief listing of filenames or if you wanted all the file details. It matters.
You also wanted to select titles, but you gave no clues what the titles were. It's possible that we've done similar things before and will be able to suggest better and more efficient ways of doing what you want to do - if only you would tell us what you want to do.
You should realise that we do this because we enjoy coding - and we enjoy knowing what we are coding, and we *HATE* having to redo work when it's written and tested, because the OP had changed something or didn't tell us the entire story.
</nag>
The first time I read your original post I was struck by the lack of details and descriptions of what you wanted to do - hence I didn't reply.
EG: You wanted a listing. You didn't say if you wanted a brief listing of filenames or if you wanted all the file details. It matters.
You also wanted to select titles, but you gave no clues what the titles were. It's possible that we've done similar things before and will be able to suggest better and more efficient ways of doing what you want to do - if only you would tell us what you want to do.
You should realise that we do this because we enjoy coding - and we enjoy knowing what we are coding, and we *HATE* having to redo work when it's written and tested, because the OP had changed something or didn't tell us the entire story.
</nag>
Re: Please help me create a txt
foxidrive wrote:Just a tip: when you give complete and actual data and descriptions of what you want then the people here can use their experience to think of the best way to achieve it.
The first time I read your original post I was struck by the lack of details and descriptions of what you wanted to do - hence I didn't reply.
EG: You wanted a listing. You didn't say if you wanted a brief listing of filenames or if you wanted all the file details. It matters.
You also wanted to select titles, but you gave no clues what the titles were. It's possible that we've done similar things before and will be able to suggest better and more efficient ways of doing what you want to do - if only you would tell us what you want to do.
You should realise that we do this because we enjoy coding - and we enjoy knowing what we are coding, and we *HATE* having to redo work when it's written and tested, because the OP had changed something or didn't tell us the entire story.
</nag>
I think you should add a note in the forum to tell any one who post a problem to give clear information about their problem and their expectations for the final shape of the output or something like that, because many new user don't understand how batch files are done
Re: Please help me create a txt
I appreciate all your tips. This is the first Batch file I have created, I am really enjoying the process and when things do exactly what I want them to, I want to scream and shout and show everyone how awesome this is (I don't think I'll ever get used to that).
I'll definitely remember to give as many details as possible next time.
Thanks.
I'll definitely remember to give as many details as possible next time.
Thanks.