Posted by Jonathan R on October 13, 2007 at 18:05:24:
Hi,
We have just implemented a new wide format scanner. The situation is that the scanning directory and other options can be configured on a user by user basis through a windows interface. Due to the fact that there will be many users of limited technical ability using this PC to scan with we have decided that a "generic" setup should be used to avoid confusion. There are 2 configuration files (xxx.dat) that are copied to each users profile each time they log in - thus setting the variables to the standard paths etc. The issue is that all scans will land up in one directory with no way to see who scanned them. In one of the config files there is a line that allows a usr prefix to be appended, as this would normally done on a user by user basis through a window interface I would like to see if I can do this with a batch file. The line to be modified in the config.dat file is: prefix=, I can get the username by echo %username% >> c:\name.txt - What I now would want to do is take the user name and insert it at the end of the prefix= line of the config file. Is this possible?
Thanks,
Jonathan