我正在尝试将一个PowerShell函数放在一起,该函数将从每个人都可以访问指定远程计算机的网络共享中复制(2)个DLL文件,然后注册这两个(DLL)。除Robocopy功能外,其他所有功能均可用。当我尝试从网络共享将Robocopy文件夹复制到远程计算机的C:根目录时。当我运行该函数时,我收到此错误:
@Override
public HlsPlaylist parse(Uri uri, InputStream inputStream) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
Queue<String> extraLines = new ArrayDeque<>();
String line;
try {
if (!checkPlaylistHeader(reader)) {
throw new UnrecognizedInputFormatException("Input does not start with the #EXTM3U header.",
uri);
}
while ((line = reader.readLine()) != null) {
line = line.trim();
if (line.isEmpty()) {
// Do nothing.
} else if (line.startsWith(TAG_STREAM_INF)) {
extraLines.add(line);
return parseMasterPlaylist(new LineIterator(extraLines, reader), uri.toString());
} else if (line.startsWith(TAG_TARGET_DURATION)
|| line.startsWith(TAG_MEDIA_SEQUENCE)
|| line.startsWith(TAG_MEDIA_DURATION)
|| line.startsWith(TAG_KEY)
|| line.startsWith(TAG_BYTERANGE)
|| line.equals(TAG_DISCONTINUITY)
|| line.equals(TAG_DISCONTINUITY_SEQUENCE)
|| line.equals(TAG_ENDLIST)) {
extraLines.add(line);
return parseMediaPlaylist(
masterPlaylist, new LineIterator(extraLines, reader), uri.toString());
} else {
extraLines.add(line);
}
}
} finally {
Util.closeQuietly(reader);
}
throw new ParserException("Failed to parse the playlist, could not identify any tags.");
}
这是我的Powershell函数:
2019/08/08 10:22:05 ERROR 161 (0x000000A1) Accessing Destination Directory
\\\C\PDFXEdit\
The specified path is invalid.
2019/08/08 10:22:05 ERROR 161 (0x000000A1) Creating Destination Directory
\\\C\PDFXEdit\
The specified path is invalid.
2019/08/08 10:22:05 ERROR 161 (0x000000A1) Creating Destination Directory
\\\C\PDFXEdit\
The specified path is invalid.