GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

For loop in Visual basic

Home Forums Scripting Windows Script Host For loop in Visual basic

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    XtaZee
    Member
    #149037

    I need the following to be in VBScript

    if you can help

    FOR /F “tokens=2* delims= ” %%A IN (‘REG QUERY “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders” /v desktop’) DO SET DeskTop=%%B

    Echo DeskTop=%DeskTop%
    [/Code]

    Thanks![Code]
    FOR /F “tokens=2* delims= ” %%A IN (‘REG QUERY “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders” /v desktop’) DO SET DeskTop=%%B

    Echo DeskTop=%DeskTop%
    [/Code]

    Thanks!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.