代码拉取完成,页面将自动刷新
同步操作将从 老爷爷/research-environment 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
'-----------------------------------------------------------------------
' Singularity RDK configuration tool
' (c) 2008 - Microsoft Corporation
'-----------------------------------------------------------------------
'-----------------------------------------------------------------------
' Splash
WScript.Echo "------------------------------------------------------------------"
WScript.Echo "- -"
WScript.Echo "- S I N G U L A R I T Y -"
WScript.Echo "- -"
WScript.Echo "- RDK 2.0 -"
WScript.Echo "- -"
WScript.Echo "------------------------------------------------------------------"
WScript.Echo
WScript.Echo
WScript.Echo "This script will configure Singularity RDK build to the"
WScript.Echo "following location:"
WScript.Echo
'-----------------------------------------------------------------------
' Objects
set WshShell = WScript.CreateObject("WScript.Shell")
Set objShell = CreateObject("Shell.Application")
'-----------------------------------------------------------------------
' Running from this location
If WScript.Arguments.Count = 1 Then
runningFrom = WScript.Arguments(0)
Else
runningFrom = WshShell.CurrentDirectory
End If
WScript.Echo chr(9) & runningFrom
'-----------------------------------------------------------------------
' Wait for input
WScript.Echo
WScript.Echo "Press ENTER to start..."
WScript.StdIn.Read(1)
'-----------------------------------------------------------------------
WScript.Echo
WScript.Echo
'-----------------------------------------------------------------------
' Determine desktop location
Set objFolder = objShell.Namespace(&H0)
Set objFolderItem = objFolder.Self
desktop = objFolderItem.Path
CreateIcon desktop
Set objFolder = objShell.Namespace(&H17)
Set objFolderItem = objFolder.Self
programs = objFolderItem.Path
CreateIcon programs
Sub CreateIcon(base)
On Error Resume Next
'-----------------------------------------------------------------------
' Add build icon to desktop
set oShellLink = WshShell.CreateShortcut(base & "\Singularity RDK 2.0.lnk")
'Define where you would like the shortcut to point to. This can be a program, Web site, etc.
oShellLink.TargetPath = "%windir%\system32\cmd.exe"
oShellLink.Arguments = "/k " & Chr(34) & "base\setenv.cmd" & Chr(34)
oShellLink.WindowStyle = 1
'Define what icon the shortcut should use. Here we use the explorer.exe icon.
oShellLink.IconLocation = runningFrom & "\singularity.ico"
oShellLink.Description = "Singularity environment build window"
oShellLink.WorkingDirectory = runningFrom
oShellLink.Save
If Err <> 0 Then
WScript.Echo
WScript.Echo "*** ERROR: A problem occurred while creating the shortcut."
WScript.Echo chr(9) & "Please make sure you ran this program with administrator privileges."
WScript.Echo
End If
End Sub
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。