Forum Discussion
Oferv
12 years agoSuper Contributor
Hi Irina,
Thanks for clarify that but, if we'll take for example the following script:
and try and convert it to c#script it will fail.
this is what i did so far but it fail:
TargetFolder = ProjectSuite["Variables"]["TextFile"]
var objShell = Sys.OleObject("Shell.Application")
var objFolder = objShell.Namespace(TargetFolder)
var colItems = objFolder.Items
for (i = 0 ; i < colItems.Count - 1 ; i++)
colItems.Item(i).InvokeVerbEx("Print")
Next
would be happy if you can help me solve that one,the purpose is to print all files in a folder one by one
Thanks
Thanks for clarify that but, if we'll take for example the following script:
TargetFolder = "C:\Logs"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(TargetFolder)
Set colItems = objFolder.Items
For i = 0 to colItems.Count - 1
colItems.Item(i).InvokeVerbEx("Print")
Next
and try and convert it to c#script it will fail.
this is what i did so far but it fail:
TargetFolder = ProjectSuite["Variables"]["TextFile"]
var objShell = Sys.OleObject("Shell.Application")
var objFolder = objShell.Namespace(TargetFolder)
var colItems = objFolder.Items
for (i = 0 ; i < colItems.Count - 1 ; i++)
colItems.Item(i).InvokeVerbEx("Print")
Next
would be happy if you can help me solve that one,the purpose is to print all files in a folder one by one
Thanks
Related Content
- 6 years agocmbdnne
- 8 years agom_essaid
- 5 years agodjvakarjoshi1
Recent Discussions
- 11 hours agoSvetaG