1.

Solve : Copy files based on the hostname?

Answer»

Hi

I’m trying to create a batch file that should COPY a file from a special directory. For example if the NSNG1234PTS it should copy a file from C:\inifiles\asia to C:\program files\rta\ini

But I can’t get it to WORK. Does someone have an idea how to do this?

Mikael
:-?In WINXP the following should work:

Code: [SELECT]if "%COMPUTERNAME%"=="NSNG1234PTS" copy "C:\inifiles\asia\afile.txt" to "C:\program files\rta\ini"

DOS IT HELP?



Discussion

No Comment Found