0
是否有任何工具將VBscript代碼轉換爲VB.net代碼或C#.net?將VBscript轉換爲VB.Net或C#.net
這是示例代碼我想它
Dim googleTime, googleDt, googleScheme
googleTime = DateDiff("s", "01/01/1970 00:00:00", Now())
googleDt = (1000 * googleTime) + Round(1000 * (Timer - Int(Timer)))
googleScheme = "http://"
googleUserAgent = Server.URLEncode(Request.ServerVariables("HTTP_USER_AGENT"))
If StrComp(Request.ServerVariables("HTTPS"), "on") = 0 Then googleScheme = "https://"
轉換例如定時器在VBScript中我沒有找到在VB.Net 請諮詢任何等效。
對於這一數量的代碼,它可能會更快只是谷歌其他語言的等效代碼 –
我不是這樣的VB.Net專家,但似乎有一些計時器:http://www.dotnetperls。 com/timer-vbnet – JMax
我想,由於一些潛在的問題,沒有VBScript到C#的自動化工具。您可能想查看一下:http://www.netcoole.com/asp2aspx/vbhtml/csharp.htm –