Bioinformatics has evolved as a great tool for molecular biologists. There are various tools available for helping in reducing the time required to analyze biological materials be it DNA, RNA, Proteins etc. I wish to list here few of the commonly used tools. Please send me suggestions to improve the content. If you like or dislike something, let me know, your inputs matters. contact me: drsanjivk[at]gmail[dot]com

Wednesday, November 23, 2011

Folder list to text file, text file to folders

You could do this:
1. Make sure all your entries are in column A of your spreadsheet.
2. Edit/copy column A
3. Click Start / Run / notepad c:\folders.txt {OK}
4. Click Edit / paste. You now have a text file with all the folder names
inside.
5. Click Start / run / cmd {OK}
6. Type this test command:
for /F "tokens=*" %* in (c:\folders.txt) do @echo md "D:\My Folders\%*"
{Enter}

If you're happy with the result, make it happen by typing this command:
for /F "tokens=*" %* in (c:\folders.txt) do @md "D:\My Folders\%*"
{Enter}

How do I print a listing of files in a directory?

Get to the MS-DOS prompt or the Windows command line.
Navigate to the directory you wish to print the contents of. If you're new to the command line, familiarize yourself with the cd command and the dir command.
Once in the directory you wish to print the contents of, type one of the below commands.

dir > print.txt

The above command will take the list of all the files and all of the information about the files, including size, modified date, etc., and send that output to the print.txt file in the current directory.

dir /b > print.txt

This command would print only the file names and not the file information of the files in the current directory.

dir /s /b > print.txt

This command would print only the file names of the files in the current directory and any other files in the directories in the current directory.

After doing any of the above steps the print.txt file is created. Open this file in any text editor (e.g. Notepad) and print the file. You can also do this from the command prompt by typing notepad print.txt.