Error: unrecognized token: "".read"

感觉是exec包的bug,不知道有人遇到过没有,帮忙看看
image.png

newDbName = "C:\\Users\\ma\\Desktop\\sqlite3\\malformed\\root\\test.db"
	path = "C:\\Users\\ma\\Desktop\\sqlite3\\malformed\\root"
	dmt := fmt.Sprintf(`/c %s&cd %s&sqlite3.exe %s ".read tmp.sql"`, path[0:2], path, newDbName)
	cmd := exec.Command("cmd.exe", dmt)
	out1, err := cmd.CombinedOutput()
	if err != nil{
		fmt.Println(err)
	}

共 1 个回复


jimmykuu

dmt 打印出来看看,看看在命令行里能运行不?

# 0