AnsweredAssumed Answered

VBS question H400

Question asked by Gingernut on Aug 23, 2017
Latest reply on Aug 23, 2017 by TomHays

I have copied and cobbled  VBscript from various sources online -this is it.

It basically adds contents of a folder to a file.


I then send an event with the relevant folder and file parameters -Insert the resulting compressed file to a container field and then upload it via ftp.

It works too ! But I do not know what the &H400 means or does in the VBS file shown in full below LINE 7.


I have also seen scripts with $H214 so would be interested to know what that is too  - Amazingly Mr Google has not helped on this occasion.


Set objShell = CreateObject("Shell.Application")

Set Ag=Wscript.Arguments

Set WshShell = WScript.CreateObject("WScript.Shell")

Set DestFldr=objShell.NameSpace(Ag(1))

Set SrcFldr=objShell.NameSpace(Ag(0))

Set FldrItems=SrcFldr.Items

DestFldr.CopyHere FldrItems ,&H400

WScript.Sleep 20000 'Sleeps for 2 seconds

Msgbox "Finished"