for /f "delims=" %%i in (set.txt) do echo %%i
此代码位于demo.bat文件中。由于SET.TXT位于当前文件夹中,因此效果很好。
但是当我将代码更改为
时for /f "delims=" %%i in (C:\users\demo\set.txt) do echo %%i
它不起作用。但SET.TXT也出现在c:\ users \ demo \ set.txt
中问题是什么?
答案 0 :(得分:0)
尝试:
bool done = false;
private void WebView_Navigation_Starting(WebView sender, WebViewNavigationStartingEventArgs args)
{
progressIndicator.Visibility = Visibility.Visible;
args.Cancel = true;
// external URL
if (isExternalUrl(args.Uri.AbsoluteUri))
{
//cancel load
args.Cancel = true;
//launch default browser
await Launcher.LaunchUriAsync(args.Uri);
progressIndicator.Visibility = Visibility.Collapsed;
}
else
{
if (!done)
{
done = true;
HttpRequestMessage httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, args.Uri);
foreach (KeyValuePair<String, String> header in additionalHeaders)
{
httpRequestMessage.Headers.Add(header);
}
webView.NavigateWithHttpRequestMessage(httpRequestMessage);
}
}
}