G
Guest
Guest
Archived from groups: microsoft.public.win2000.file_system (More info?)
Subject: We have a problem with a copy diretory command that has worked fine in eariler Windows versions.
Specifications:
Copy the file names in one directory to a text file in another directory using a system call.
We do not want to copy the directory itself.
We just want the file names to be listed in a destination text file.
We don't care if the directory path of each file is copied into the text file.
Either the file names OR the file name with path as a list will be fine.
What should be the command format to copy a directory list into a file in Windows 2000?
We have been using a system call to execute the following command.
This DOS cmd.exe command has been successful on windows XP and earlier windows versions when called by from an
application software program:
C:\WINDOWS\system32.cmd.exe /c dir /b c:\inputfilesdir\ > c:\filedirectories\directorytoday.txt
1. c:\inputfilesdir\ contains 1 to many files and file types.
2. The above dos command is called from an application software program
3. After the above command is called in windows xp, the directory.txt file contains the directory listing of
all files in c:\inputfilesdir\
4. c:\filedirectories\directorytoday.txt is the destination file that contains a simple, sequential list of the file names after the command is executed.
Our problem:
--The command is not working in Windows 2000.
--The command has worked fine in prior Windows versions.
Specifications:
1. Copy the file names in a directory to a text file using a system call.
2. After the list of files is in the text file, each wil be opened and processed by an application.
Subject: We have a problem with a copy diretory command that has worked fine in eariler Windows versions.
Specifications:
Copy the file names in one directory to a text file in another directory using a system call.
We do not want to copy the directory itself.
We just want the file names to be listed in a destination text file.
We don't care if the directory path of each file is copied into the text file.
Either the file names OR the file name with path as a list will be fine.
What should be the command format to copy a directory list into a file in Windows 2000?
We have been using a system call to execute the following command.
This DOS cmd.exe command has been successful on windows XP and earlier windows versions when called by from an
application software program:
C:\WINDOWS\system32.cmd.exe /c dir /b c:\inputfilesdir\ > c:\filedirectories\directorytoday.txt
1. c:\inputfilesdir\ contains 1 to many files and file types.
2. The above dos command is called from an application software program
3. After the above command is called in windows xp, the directory.txt file contains the directory listing of
all files in c:\inputfilesdir\
4. c:\filedirectories\directorytoday.txt is the destination file that contains a simple, sequential list of the file names after the command is executed.
Our problem:
--The command is not working in Windows 2000.
--The command has worked fine in prior Windows versions.
Specifications:
1. Copy the file names in a directory to a text file using a system call.
2. After the list of files is in the text file, each wil be opened and processed by an application.