So you only want to create the file if it exists?

code:
 
IF EXIST('c:\ '+@wksta +'.TXT')
.
.
Open(3, 'c:\ '+@wksta +'.TXT',5)=0