Summary: You can redirect the output of the dir command to a text file. Something like dir /on /b > filename.txt I don't know if that's what you're looking fo...
Summary: If you get the folder names into a txt file you can: ===================================== @echo off & setLocal EnableDelayedExpansion for /f "tokens=...
Summary: To include empty subdirectories /E There 'may' be a utility that copies the long file names into a file for restoration under a FAT32 environment. ...
Summary: Thanks for all your replies. I need Long File Name support and LFNDOS and DOSLFN are pretty flakey. I tried xxcopy, which works but is terribly slow a...
Summary: Here is a utility capture by, Laura Fairhead: It can solve this problem and a few others:- + works with any size text mode + truncates any trailing wh...
Summary: Hello Every1, I have a few directories in a CD which I can not get into, there file names are normal and when I check "dir" it shows the file names fo...
Summary: I would like to get the short file name for a given file within a NT script (batch) file. I tried using "set SFN=%~ns1" (where parameter 1 is the long...
Summary: How can I get the content of a file into a variable, so that I can cut it. I grab a url and save it into a file. I now need to open the file and save ...
Summary: Is it possible to include a file name as a field in a file? I have many 'daily' files--e.g., 010199.txt, 010299.txt, etc. containing patient records ...
Summary: That's the easy part. After getting user's input into a variable, let's say the %input% variable, just do: echo %input%>> file.ext -- Leonardo Pignata...
Summary: Is there a way to get the date into the file name and move yesterdays file to another folder location ? I have to log stuff into a file, by date. At t...
Summary: I am programing a dos game. I use the following to get the path of where the user is at the moment the program is run. shell cd > path.txt This goes ...
Summary: I need a script to handle moving files into a hierarchical folders structure based on the first 3 letters of the file name. For example, the file hem...
Summary: I would do the following: 1 - Put the file names in a list 2 - Generate the random number list 3 - Copy Rename the selected files in list to a work di...
Summary: Hi again, Aftab. Though I have helped you on your last subject, in which you needed to get the 'N'th line from a file into a variable, I still can't f...
Summary: First, get the current date into a variable without separators, so it can be used as part of a filename: FAQ #02 - Get date into a variable without se...
Summary: Hi Mechanix Yes I would be quite interested in your batch file, can you post it here. Thanks From your code above I take it you are using Win 2000/X...
Summary: I have a DOS program that will ONLY print to LPT1. I need to be able to take print output into a file (it will be plain text and numbers). I have tr...
Summary: Hi Just change the Folder(0) and Folder(1) to point to your Folders. To run type cscript Filename.vbs or wscript Filename.vbs if you like Dialog box...
Summary: Hi I don't know of a way to get carriage line+linefeed into an environment variable. you could put them into 3 variables using a third party program...
Summary: I am running WINNT4.0, SP6 and dual booting to MS-DOS6.22 with Windows for workgroups 3.11. My first questions would be, if the directories are hidde...
Summary: I am trying to create a batch file that can take two file names and output the diferences between the files on screen. I also want to have the ability...
Summary: Ok, that can be done by batch file (.bat). The only problem is that "getting ascii text from within a file" is too much uncertain. Where is the string...