How do I get Google Drive to open text files with arbitrary extensions as text files?
If you just want to view the files you can do the following:
- Save the file with a .txt extension, i.e.
filename.bat
becomesfilename.bat.txt
- Add it to google drive
- Remove the .txt extension,
filename.bat.txt
goes back tofilename.bat
Google determines the context type based on the extension and retains that through future file renamings, so you'll be able to view it even after changing back to the original extension.