All,
I have a file which contains 2 lines. One line has a server name listed and the line below it shows a path. Example:
ECCN088
C:\winnt\temp
I want to write a short script that will read each line in the file and echo whether the line contains a server or a file path. I was trying to test each line for a \ or : since the lines with file paths will always contain those special characters. That way if it finds those characters on a line, the script would echo "This is a file path" and if the script doesn't see those characters it would echo "This is a server".
Any hints?
Thanks,
Mike
I have a file which contains 2 lines. One line has a server name listed and the line below it shows a path. Example:
ECCN088
C:\winnt\temp
I want to write a short script that will read each line in the file and echo whether the line contains a server or a file path. I was trying to test each line for a \ or : since the lines with file paths will always contain those special characters. That way if it finds those characters on a line, the script would echo "This is a file path" and if the script doesn't see those characters it would echo "This is a server".
Any hints?
Thanks,
Mike