windows File object translates slashes in domain/user

replaced the File object with substrings and lastIndexOf('/')