AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-547147

Dominique's questions

Martin Hope
Dominique
Asked: 2025-03-11 18:53:10 +0800 CST

为什么“grep”无法在 SQL-Server 生成的脚本中找到匹配项,即使是简单的匹配项?

  • 13

我正在Windows 10 机器上开发WSL实例(Ubuntu)。

为了在数据库中查找某些信息,我生成了一个脚本,其中包含数据库的整个结构和grep内容,我希望它可以简单地告诉我某些信息是否存在。

然而,正如您所看到的,这并没有起作用:

WSL_Prompt> grep "S" DB_Local_Backup_20250311.sql

=> 你在开玩笑吗?整个数据库中没有字母“S”?

WSL_Prompt> head -5 DB_Local_Backup_20250311.sql
USE [DB_Name]
GO
/****** Object:  User [DB_user]    Script Date: 11/03/2025 11:32:44 ******/
CREATE USER [DB_user] WITHOUT LOGIN WITH DEFAULT_SCHEMA=[dbo]
GO

=> 字母“S”几乎出现在该文件的所有地方。

WSL_Prompt> ls -ltra DB_Local_Backup_20250311.sql
-rwxrwxrwx 1 scampsd scampsd 4575828864 Mar 11 11:35 DB_Local_Backup_20250311.sql

=> 好吧,我承认:这个文件确实很大。

WSL_Prompt> grep --version | head -n 1
grep (GNU grep) 3.4

grep=> 这是我正在使用的版本。

WSL Prompt> cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"

=> 这是我正在使用的 WSL 的版本。

更多信息:

文件类型:

WSL_Prompt> file DB_Local_Backup_20250311.sql
DB_Local_Backup_20250311.sql: Little-endian UTF-16 Unicode text, with CRLF line terminators

十六进制转储:

WSL_Prompt> head -n 1 DB_Local_Backup_20250311.sql | hd -c
00000000  ff fe 55 00 53 00 45 00  20 00 5b 00 43 00 65 00  |..U.S.E. .[.C.e.|
0000000         U  \0   S  \0   E  \0      \0   [  \0   C  \0   e  \0

有解决办法吗?

linux
  • 2 个回答
  • 2211 Views
Martin Hope
Dominique
Asked: 2025-02-18 15:47:59 +0800 CST

如何将 Excel 中的 2x512 数组转换为 32x32 数组

  • 7

我有很多信息,如下所示:

 0   1   2   3  4  ...
'0 'C1 '81 '40 '1  ...

(供您参考:第二行包含十六进制数,我使用它是'为了使 Excel 避免将'12(即 18,十八)这样的值转换为 12(十二)。

我知道函数,例如=ToRow()和=ToCol()可以将数据转换为单行或单列。我还知道函数,例如=Sequence()可以创建二维矩阵,但我找不到ToMatrix()或ToArray()函数。

有人知道在 Excel-365 中执行此操作的简单方法吗?

提前致谢

microsoft-excel
  • 4 个回答
  • 1070 Views
Martin Hope
Dominique
Asked: 2025-02-06 18:30:59 +0800 CST

如何在 Excel 365 中将文本转换为表情符号或笑脸?

  • 5

当我:-)在 MS-Word 中输入内容时,它会被笑脸或表情符号取代:

MS-Word 中的笑脸/表情符号

当我在 Excel 中执行此操作时,什么也没有发生:

MS-Excel 中没有笑脸/表情符号

我正在使用 Excel-365。MS-Excel 和 MS-Word 都属于同一 Office 版本: MS-Office 版本

我如何解释 MS-Excel 执行 MS-Word 已经执行的类似替换?

我不知道这是否相关,但我在装有 Windows-10 平台的计算机(不是智能手机)上打字。

microsoft-excel
  • 1 个回答
  • 29 Views
Martin Hope
Dominique
Asked: 2025-01-29 16:05:19 +0800 CST

为什么我找不到我的“mspaint”程序?[重复]

  • 1
此问题这里已有答案:
Windows 11 中经典 Paint 应用程序的可执行文件在哪里? (4 个答案)
6 天前关闭。

在工作中,我有一台 Windows 10 计算机,它的工作方式非常合乎逻辑:如果我想定位一个程序,我启动Dir /S /B "*program*.exe它然后就能找到它。

在家里,我有一台 Windows-11 计算机,其行为非常奇怪,如您所见:

Windows 命令行:

C:\Program Files>dir /S /B "*paint*.exe"
File Not Found

Windows 任务管理器(转到“详细信息”):

MS-Paint 位置

...最重要的是:该程序不应该位于“C:\Windows”吗?

供您参考,以下是该命令的摘录winver:

Windows 版本

windows-10
  • 1 个回答
  • 56 Views
Martin Hope
Dominique
Asked: 2025-01-28 18:49:00 +0800 CST

为什么组合框选定的值不是实际单元格值?

  • 6

正如另一个问题中所述,我正在创建一个 Excel 文件来跟进我的任务。为此,我创建了一些值列表,用于组合框,这似乎运行良好。

下一点:我创建了条件格式,以便清楚地看到我还需要做哪些任务,哪些任务有问题……,但这似乎不起作用。
以下是条件格式定义:

条件格式定义

以下是“ComboBox Sources”对应值的截图:

组合框来源

以下是此类组合框的一个例子,其颜色不如预期(以及可能的解释):

条件格式失败的屏幕截图

  • 红色部分表示单元格的颜色与预期不符。
  • 黄色表示您可以看到可能的解释:在组合框中选择一个值显然没有设置单元格值。
  1. 我是否正确认为将组合框配置为修改单元格值可能会解决我的问题?如果是,我该怎么做?
  2. 如果没有,我该怎么做才能执行条件格式所需的行为?
microsoft-excel
  • 1 个回答
  • 18 Views
Martin Hope
Dominique
Asked: 2025-01-28 17:19:19 +0800 CST

如何确保我的整个列包含类似的组合框?

  • 7

我正在处理一张 Excel 表,由于几列都有离散数量的可能条目,因此我选择使用组合框来解决此问题。

这使我面临以下情况(主页和组合框来源): 截屏

这看起来不错,但是当我想在第二行输入一些内容时,我需要重新创建组合框,这不是我想要的:我希望这些单元格是组合框,而我不想对每一行都执行复制粘贴。

我怎样才能实现这个目标?

microsoft-excel
  • 1 个回答
  • 135 Views
Martin Hope
Dominique
Asked: 2025-01-27 18:53:43 +0800 CST

什么是 Base64 字符串?

  • 4

我在 SQL-Server 表中有一列,包含如下信息:

数据
0x0056794433020000632700C90079058303F2000102EA40C0000000150001000100020001001500010001000136BB0000000000001F50000000100010001000100003135343131313838323230393239393638340000
0x0056C944370200007827007200C9058303F2000102EA40BD0000000E003E000200020001000E00010001000136C5020036B1000001F50000000100010001000100003339303038373030333533323331343536310000
0x0056C9443102000078AF007100C9058303F2000102EA40BB0000000D0033000500020002000D00010001000136C5020036B1000001F50000000100010001000100003339303038373030333533323338323937330000

该信息的写法如下(VB.Net代码):

Dim oPar5 As New SqlParameter("@Data", Convert.ToBase64String(data))

我正在尝试解码它,但是我感觉自己因为对这个主题缺乏了解而被搞得一团糟(例如,ChatGpt 不断将 XML 拖入其中,而这与它无关)。

因此,我决定从基础开始:什么是 Base64 字符串?只有清楚了这一点,我才可能开始尝试将其转换为字节数组(作为测试,第四个字节应始终为“D”、“K”或“Q”,其他值则不可能)。

有人能帮我开始吗?

conversion
  • 1 个回答
  • 55 Views
Martin Hope
Dominique
Asked: 2025-01-10 18:02:58 +0800 CST

如何在 Wireshark 捕获中找到包含特定数据的 TCP 数据包?

  • 5

我正在尝试在 Wireshark 捕获中找到一堆特定数据。
首先,我需要确保数据确实存在,这已在我之前的帖子中得到证实。

现在我想更进一步并实际过滤提到的数据。

目前我能够创建以下过滤器:

ip.dst == 10.1.0.160 && tcp.port == 12714 && data.len >=1

如您所见,这会过滤特定 IP 地址和相应 TCP 端口上的 Wireshark 捕获,其中包含非空数据,但我想进一步了解“数据”过滤部分:

我的“数据”始终包含固定字母“MFS1”,有什么方法可以过滤它吗?

我知道“MFS1”是4D 46 53 31十六进制的,我可以过滤data.like('%4D465331%')诸如此类的内容吗?

networking
  • 1 个回答
  • 15 Views
Martin Hope
Dominique
Asked: 2025-01-10 16:58:19 +0800 CST

为什么我在 Wireshark 捕获中看不到我的消息?

  • 6

我有一个应用程序,将信息发送到 IP 地址:端口 192.168.2.191:5000 的 TCP 连接。在相应的日志中,我可以看到以下内容:

2025-01-10 09:25:02.1895 | 调试 | ConnectionManager.Send | 电报发送至 Ip=[192.168.2.191]:Port=[5000]:电报=[ ZA00**MFS1PL01****01020010120000************************************************************]

运行 Wireshark 捕获时,我看到的内容如下:

Wireshark 捕获

ZA00...Wireshark 捕获的内容在哪里?

(供您参考:我检查了所有发往该 IP 地址(端口)的数据包,没有任何内容包含该信息。)

WireShark 是否有可能没有捕获所有信息?Wireshark 是否有可能捕获了信息,但没有显示出来?...?

networking
  • 1 个回答
  • 43 Views
Martin Hope
Dominique
Asked: 2024-12-11 15:19:19 +0800 CST

启动存储过程后,“编辑顶部...行”不再起作用

  • 5

我不知道这个问题应该在这里问还是在DBA 网站上问:

我正在使用 SSMS(SQL-Server Management Studio),以下是来自“帮助、关于”框的版本信息:

--- v18.12
SQL Server 管理工作室 15.0.18420.0
SQL Server 管理对象 (SMO) 16.100.47021.0+7eef34a564af48c5b0cf0d617a65fd77f06c3eb1
Microsoft Analysis Services 客户端工具 15.0.19750.0
Microsoft 数据访问组件 (MDAC) 10.0.19041.5007
微软 MSXML 3.0 4.0 6.0
Microsoft .NET 框架 4.0.30319.42000
操作系统 10.0.19045

最近,我一直在使用一些存储过程:sp_trace_create,,sp_trace_setevent和sp_trace_setfilter。sp_trace_setstatus

一旦我使用这些存储过程,我已经注意到“编辑”功能不再起作用:右键单击表名,选择Edit Top ... Rows,我只看到一个空白屏幕:

SSMS 屏幕截图

与此同时,我已停止一切踪迹:

EXEC sp_trace_setstatus @TraceID, 0; -- Stop the trace
EXEC sp_trace_setstatus @TraceID, 2;

我重启了 SSMS,重启了 PC,但没有任何效果。
据我所知,Windows 事件日志不包含任何“错误”日志。

windows
  • 1 个回答
  • 19 Views
Martin Hope
Dominique
Asked: 2024-12-05 19:01:01 +0800 CST

在我按下“ENTER”键之前不要开始搜索

  • 6

Windows-10 的 Windows Search 对神经系统有很大的打击 :-)

我开始输入File:,它就启动了。
然后我输入File:C,它又启动了。
然后我输入File:Co,它又启动了。...
等
我输入的时候,File:Company.Framwork.dll它已经启动了那么多次,以至于搜索的性能大大下降了。

有没有办法在 Windows-10 中指示仅在我完成输入后才开始搜索?(例如,只有当我按下ENTER按钮时才开始搜索)

windows
  • 1 个回答
  • 66 Views
Martin Hope
Dominique
Asked: 2024-12-02 22:10:36 +0800 CST

我怎样才能摆脱“文件访问被拒绝”?

  • 6

请原谅我的沮丧,但 Windows 文件访问权限确实极其糟糕:

在 SQL-Server Management Studio 中,我使用存储过程来创建跟踪文件,如下所示:

DECLARE @TraceID INT;
DECLARE @MaxFileSize BIGINT = 50; -- File size limit in MB
DECLARE @TraceFilePath NVARCHAR(256) = N'C:\SQLTraces\Trace_OrderPart'; -- Base trace file path

-- Step 1: Create a new trace
EXEC sp_trace_create 
    @traceid = @TraceID OUTPUT,
    @options = 2, -- File rollover enabled
    @tracefile = @TraceFilePath,
    @maxfilesize = @MaxFileSize,
    @stoptime = NULL; -- No automatic stop

...

-- Step 4: Start the trace
EXEC sp_trace_setstatus @TraceID, 1; -- Start the trace

这确实创建了一些所谓的*.trc文件,但是当我尝试使用 SQL Server Profiler 打开它们(参见 SSMS,“工具”菜单)时,我得到的是:

错误截图

您可能会想:“没问题”。只需将文件复制到其他地方并在那里打开即可。然而,这不起作用,所以我尝试修改目录文件访问权限:我从这个开始:

Windows 没有权限

我取消选中复选框并单击“将更改应用于此文件夹、子文件夹和文件”,我提供管理员权限,他完成所有操作,最后,当我再次单击目录时,我(再次)得到以下内容:

再次相同的截图

我尝试使用 WSL 强制执行它,但这也不起作用:
“谁有权访问此目录以及拥有什么样的访问权限?”

Prompt>/mnt/c$ ls -ltra | grep "SQLTrace"
drwxrwxrwx 1 scampsd scampsd    4096 Dec  2 14:40 SQLTraces

=>“scampsd”拥有完全访问权限。

我是谁?

Prompt>/mnt/c$ cd ~
Prompt>~$ pwd
/home/scampsd

=> 我是“scampsd”。

我该怎么做才能强制授予我访问该目录的权限?

windows
  • 1 个回答
  • 259 Views
Martin Hope
Dominique
Asked: 2024-11-26 22:06:14 +0800 CST

如何在 Windows 命令行中获取文件名的首字母?

  • 5

我刚刚尝试从文件名列表中删除第一个字符,但是没有用:

for %f in (_Telerik.Windows.*.dll) do set "filename=%f" && ren "%f" "%filename:~1%"

结果:

C:\Directory\set "filename=_Telerik.Windows.Themes.Windows8Touch.dll"   && ren "_Telerik.Windows.Themes.Windows8Touch.dll" "Telerik.Windows.Zip.dll"
A duplicate file name exists, or the file cannot be found.

C:\Directory\set "filename=_Telerik.Windows.Zip.dll"   && ren "_Telerik.Windows.Zip.dll" "Telerik.Windows.Zip.dll"
A duplicate file name exists, or the file cannot be found.

供您参考,我已经使用过了setlocal enabledelayedexpansion。

我如何从这些文件名中获取第一个下划线?

windows
  • 1 个回答
  • 18 Views
Martin Hope
Dominique
Asked: 2024-11-06 18:26:20 +0800 CST

我的哪个“user.config”文件是最新的?

  • 5

我的应用程序定期写入“user.config”文件。因此,我可能有几个这样的文件,如您在此处所见:

C:\Users\DDM\AppData\Local\Microsoft\Application.exe_Url_0pxm4tjihtf4gojic1ie1emq0ikpux0l\1.0.0.0\user.config
C:\Users\DDM\AppData\Local\Microsoft\Application.exe_Url_2b3b4tyfmzkmjhm51ejgkixpxa1mj5mv\1.0.0.0\user.config
C:\Users\DDM\AppData\Local\Microsoft\Application.exe_Url_35225euvnelhwk1uagjvfdpuat5ri4pq\1.0.0.0\user.config
C:\Users\DDM\AppData\Local\Microsoft\Application.exe_Url_5n2gl0ysqrdxoqfoamypqiowrjzi1urz\1.0.0.0\user.config

由于这些文件位于“AppData”目录中,因此 Windows 搜索不起作用: 截屏

是否有任何参数或开关可以添加DIR /S以添加最后修改日期(如ls -l在 UNIX 中)?

提前致谢

编辑:forfiles尝试:
与此同时,我发明了以下forfiles命令:

forfiles /S /M user.config /C "cmd /c echo @path ":" @fdate, @ftime"

然而,这会导致很多“拒绝访问”错误。

是否有2>/dev/null像 UNIX 那样的 ?

windows-10
  • 2 个回答
  • 35 Views
Martin Hope
Dominique
Asked: 2024-07-15 16:23:35 +0800 CST

新卷错误消息:介质受到写保护

  • 5

我的客户在他的 Windows 计算机上有多个卷。为了测试一些东西,我试图获得相同的情况,所以我缩小了主磁盘(C: 驱动器)并创建了一个新卷(在 D: 驱动器上)。起初,一切似乎都很好:

计算机管理截图:
计算机管理截图

我已经使用该命令格式化了该磁盘Format D:,正如您在命令行提示符(以管理员身份运行)的摘录中所看到的:

C:\WINDOWS\system32>format d:
The type of the file system is NTFS.
Enter current volume label for drive D: Application_Logs

WARNING, ALL DATA ON NON-REMOVABLE DISK
DRIVE D: WILL BE LOST!
Proceed with Format (Y/N)? Y
Formatting 9,8 GB
Volume label (32 characters, ENTER for none)? Application_Logs
Creating file system structures.
Format complete.
       9,8 GB total disk space.
       9,7 GB are available.

但是,当我尝试在新驱动器上执行某些操作时,我收到的响应是媒体受到写保护:

D:\>mkdir Logs
The media is write protected.

我尝试修改该驱动器上的用户权限但失败了:

安全设置修改尝试

windows
  • 1 个回答
  • 32 Views
Martin Hope
Dominique
Asked: 2024-07-05 20:36:55 +0800 CST

为什么连接到同一个 Wi-Fi 的两台电脑上的行为有所不同?

  • 5

在我的个人电脑上,我使用 Wi-Fi 路由器连接到互联网。
在我的工作电脑上,当我连接到同一个 Wi-Fi 路由器时,我看到“无互联网,安全”。

如何让两台计算机在同一个 Wi-Fi 连接上有不同的行为?

networking
  • 2 个回答
  • 86 Views
Martin Hope
Dominique
Asked: 2024-06-25 21:59:15 +0800 CST

如何在本地 IP 地址上模拟 Hercules?

  • 5

我想使用Hercules(由 HW-Group 提供)模拟一个 TCP 服务器。

当我配置端口(12714)时,netstat -aon | findstr "12714"显示此结果:

在此处输入图片描述

DOS Prompt>netstat -aon | findstr "12714"
TCP  0.0.0.0:12714  0.0.0.0:0  LISTENING  29408

有人知道如何获取 TCP 服务器地址“127.0.0.1:12714”而不是“0.0.0.0:12714”(或任何其他 IP 地址,我只是想摆脱这个广播地址)吗?

我问的原因是:bind()对该 IP 地址/端口执行了 a,结果出现以下异常:

Communication.TcpConnection.Connect | TcpConnection: Connecting failed (127.0.0.1:12714):
System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its context
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Server.Communication.TcpConnection.Connect() in 
C:\...Communication\TcpConnection.cs:line 60 

提前致谢

networking
  • 1 个回答
  • 20 Views
Martin Hope
Dominique
Asked: 2024-05-15 16:07:28 +0800 CST

eCatcher 错误:VPN 隧道错误:未找到 TAP-Windows 适配器“Talk2m-eCatcher”

  • 5

我刚刚启动了 eCatcher 会话。

当我尝试连接其中一个 Ewon 时,收到以下错误消息:

VPN 隧道错误:未找到 TAP-Windows 适配器“Talk2m-eCatcher”正在重试连接 Talk2M... 秒

我查看了我的设备管理器(网络适配器),这是我发现的内容(部分):

在此处输入图片描述

编辑:更深入地了解“设备堆栈”(设备列表?):

我深入研究了其中一个(“TAP-Windows Adapter V9”),当询问设备堆栈时,我看到以下条目:

  • \Driver\FortiEDRBaseDriver...
  • \Driver\tap0901
  • \Driver\PnpManager

我应该在哪里以及如何找到这个“Talk2m-eCatcher”TAP-Windows 适配器?

有人能确认我是否需要在我的网络连接列表中看到“Talk2m-eCatcher”吗?(我没有在那里看到它):

在此处输入图片描述

如果是的话,我需要做什么才能将“Talk2m-eCatcher”添加到该列表中?

提前致谢

编辑:“netsh dump”的结果

netsh dump
#========================
# Interface configuration
#========================
pushd interface

popd
# End of interface configuration

# ----------------------------------
# 6to4 Configuration
# ----------------------------------
pushd interface 6to4

reset

popd
# End of 6to4 configuration

# ----------------------------------
# IPHTTPS Configuration
# ----------------------------------
pushd interface httpstunnel

reset

popd
# End of IPHTTPS configuration

# ----------------------------------
# IPv4 Configuration
# ----------------------------------
pushd interface ipv4

reset
set global icmpredirects=enabled taskoffload=enabled
set interface interface="Ethernet (Kernel Debugger)" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Wi-Fi" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection* 1" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection* 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 6" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="VMware Network Adapter VMnet1" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="VMware Network Adapter VMnet8" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 5" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection 3" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 3" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 4" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set subinterface interface= subinterface=ethernet_32757 mtu=65536
add address name="VMware Network Adapter VMnet1" address=192.168.13.1 mask=255.255.255.0
add address name="VMware Network Adapter VMnet8" address=192.168.32.1 mask=255.255.255.0

popd
# End of IPv4 configuration

# ----------------------------------
# IPv6 Configuration
# ----------------------------------
pushd interface ipv6

reset
set interface interface="Ethernet (Kernel Debugger)" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Wi-Fi" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection* 1" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection* 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 6" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="VMware Network Adapter VMnet1" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="VMware Network Adapter VMnet8" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 5" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection 2" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Local Area Connection 3" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 3" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set interface interface="Ethernet 4" forwarding=enabled advertise=enabled nud=enabled ignoredefaultroutes=disabled
set subinterface interface= subinterface=ethernet_32757 mtu=65536

popd
# End of IPv6 configuration

# ----------------------------------
# ISATAP Configuration
# ----------------------------------
pushd interface isatap

popd
# End of ISATAP configuration

# ----------------------------------
# 6to4 Configuration
# ----------------------------------
pushd interface 6to4

reset

popd
# End of 6to4 configuration

# ----------------------------------
# ISATAP Configuration
# ----------------------------------
pushd interface isatap

popd
# End of ISATAP configuration

#========================
# Port Proxy configuration
#========================
pushd interface portproxy

reset

popd

# End of Port Proxy configuration

# ----------------------------------
# TCP Configuration
# ----------------------------------
pushd interface tcp

reset

set global rss=enabled autotuninglevel=normal congestionprovider=default ecncapability=disabled timestamps=disabled initialrto=1000 rsc=enabled nonsackrttresiliency=disabled maxsynretransmissions=4 fastopen=enabled fastopenfallback=enabled hystart=enabled prr=enabled pacingprofile=off

popd
# End of TCP configuration

# ----------------------------------
# Teredo Configuration
# ----------------------------------
pushd interface teredo
set state type=disabled servername=win1910.ipv6.microsoft.com. servervirtualip=0.0.0.0

popd
# End of Teredo configuration

# ----------------------------------
# UDP Configuration
# ----------------------------------
pushd interface udp

reset

set global uro=disabled

popd
# End of UDP configuration

# ------------------------------------
# Bridge configuration (not supported)
# ------------------------------------

# ------------------------------------
# End of Bridge configuration
# ------------------------------------

The 'netsh advfirewall dump' command is not implemented in this version
of Windows. Instead, use the 'netsh advfirewall export' command to write
the current Windows Defender Firewall with Advanced Security configuration from
the current policy store to a file on disk. You can then use 'netsh
advfirewall import' to read the file and load it into another policy
store, such as a Group Policy object or the current policy store on
another computer. To set the current policy store, use the 'netsh
advfirewall set store' command.
For more information about the commands in the netsh advfirewall context,
see Netsh Commands for Windows Defender Firewall with Advanced Security at
https://go.microsoft.com/fwlink/?linkid=111217.
# ----------------------------------------
# Wired LAN Configuration
# ----------------------------------------
pushd lan

popd

# End of Wired LAN Configuration.

Mobile Broadband configuration dump is not supported

# -----------------------------------------
# Remote Access Configuration
# -----------------------------------------
pushd ras

popd

# End of Remote Access configuration.

# -----------------------------------------
# Remote Access Diagnostics Configuration
# -----------------------------------------
pushd ras diagnostics

set rastracing component = * state = disabled

set modemtracing state = disabled

set cmtracing state = disabled

set securityeventlog state = disabled

popd

# End of Remote Access Diagnostics Configuration.

# -----------------------------------------
# Remote Access AAAA Configuration
# -----------------------------------------
pushd ras aaaa

popd

# End of Remote Access AAAA configuration.

# -----------------------------------------
# WinHTTP Proxy Configuration
# -----------------------------------------
pushd winhttp

reset proxy

popd

# End of WinHTTP Proxy Configuration

# ----------------------------------------
# Wireless LAN configuration
# ----------------------------------------
pushd wlan

# Allow filter list
# ----------------------------------------

# Block filter list
# ----------------------------------------

popd
# End of Wireless LAN Configuration
windows
  • 1 个回答
  • 110 Views
Martin Hope
Dominique
Asked: 2024-03-29 00:20:03 +0800 CST

有没有办法在 Windows 计算机上使用类似 Linux 的符号链接来引用另一台计算机上的位置?

  • 11

我的应用程序正在将日志写入一个目录,该目录是硬编码的“Logs”,位于我的应用程序的运行时目录下。
今天,一位客户问我是否可以将这些日志放在另一个地方(另一台计算机上)。

作为第一个测试,我尝试创建一个符号链接:

  1. 我停止了应用程序。
  2. 我删除了“Logs”目录。
  3. 在我的计算机上使用 WSL,我创建了一个符号链接,例如ln -s /mnt/c/Temp_Folder/TestLog/ /mnt/c/<Application>/Logs.
  4. 我开始了我的申请。

我没有看到目录中出现任何日志C:\Temp_Folder\TestLog\。

我看到不同的原因:

  • 尝试在 Windows 计算机上使用 Linux 技术要么是一个完全愚蠢的想法。
  • 要么它可能有效,但需要考虑一些额外的事情。

我希望是第二个选择,但是那样的话,我需要考虑哪些事情呢?

在Harry的回答后进行编辑:如果您可以使用 Windows 技术,
为什么要使用 WSL ?:-)ln -smklink

我喜欢这个想法,但不幸的是它似乎不起作用,正如您从以下实验中看到的那样:

C:\<Runtime_Dir>mklink /D Logs E:\TestLog\
=> result:
29/03/2024  08:21    <SYMLINKD>     Logs [E:\TestLog\]

=> 因此,确实Logs创建了目录符号链接,但是当我启动应用程序时,似乎不再写入任何日志(我看到它们是在控制台窗口中创建的,但它们没有写在文件中)。

其他一些实验:(我记得之前有一个路口,但细节已经忘记了)

C:\<Runtime_Dir>mklink /D /J Logs E:\TestLog\
Local volumes are required to complete the operation.
C:\<Runtime_Dir>mklink /D /H Logs E:\TestLog\
The system cannot find the path specified.
C:\<Runtime_Dir>mklink /J Logs E:\TestLog\
Local volumes are required to complete the operation.

经过更多实验后编辑2:
在引用另一个驱动器时,它似乎不起作用,但当我引用同一台计算机上的另一个目录时,它似乎确实起作用,正如您在此处看到的:

C:\<Runtime_Dir>mklink /D Logs C:\Temp_Folder\TestLog\
symbolic link created for Logs <<===>> C:\Temp_Folder\TestLog\

C:\<Runtime_Dir>mklink /D /J Logs C:\Temp_Folder\TestLog\
Junction created for Logs <<===>> C:\Temp_Folder\TestLog\

我可以确认,在这两种情况下,日志都会被创建!

换句话说,问题不在于 Windows 符号链接/连接不起作用:问题在于符号链接/连接引用了另一个驱动器。
我记得在 Windows 中创建驱动器有两种甚至三种方法(驱动器映射、替换(?)和另一种(???),这在我的脑海中非常模糊),我想知道符号链接/连接故事是否可以在一种驱动器上工作,但不能在另一种驱动器上工作,以及是否有办法解决这个问题。

在u1686_gravity的答案之后编辑3 :
即使使用 UNC 路径并具有“正确”的配置行为,它似乎仍然不起作用:

fsutil behavior query symlinkEvaluation
Local to local symbolic links are enabled.
Local to remote symbolic links are enabled. => That's the one, isn't it?
Remote to local symbolic links are disabled.
Remote to remote symbolic links are disabled.
C:\<Runtime_Dir>mklink /D Logs \\petrvs01\Log\TestLog\
symbolic link created for Logs <<===>> \\petrvs01\Log\TestLog\

链接已创建,但那里没有创建日志文件。

因此,因为我认为我的方向是正确的,所以我决定执行另一个测试:使用 Windows 资源管理器进入Logs目录/符号链接/连接点并使用资源管理器的上下文菜单创建一个简单的文本文件。这不起作用,因为出现以下错误消息:

在此输入图像描述

到目前为止我学到了三件事:

  1. 要在 Windows 上创建符号链接,请使用mklink而不是 WSL 的ln -s. 为此以管理员身份打开命令提示符。
  2. 要创建到远程目录的符号链接/连接,您需要使用 UNC 路径,而不是驱动器号。
  3. fsutil使用命令检查从远程目录创建符号链接/连接到远程目录的权限fsutil behavior query symlinkEvaluation。

接下来我需要学习:在哪里检查符号链接/连接目标权限?有人有想法吗?

windows
  • 2 个回答
  • 613 Views
Martin Hope
Dominique
Asked: 2024-01-31 16:04:04 +0800 CST

如何在“DIR /S /B”结果中获取最后修改日期时间戳?

  • 6

在Windows(3.1、Windows 95)的早期,有一个很棒的功能,称为“查找”,可用于查找计算机上的文件。

一些***决定删除此功能并将其“集成”到常规Windows资源管理器中。
尽管它很可能是出于最好的意图,但在许多情况下它不起作用:我打字file:*.bak,当我幸运时(大多数情况下我不是),我的计算机会搜索文件*.bak。

所以,我决定使用旧的命令行,当我需要搜索文件时,我进入主目录并输入dir /S /B *.bak,它的工作就像一个魅力!

但是......最后的修改日期没有显示,这使得很难看出哪个是我的列表中最新的 bak 文件。

有谁知道如何将最后修改日期添加到Dir /S /B结果中?

提前致谢

windows
  • 1 个回答
  • 14 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve