Citect Wordpad

ALAN001

Member
Join Date
Apr 2010
Location
UK
Posts
30
Hi, I am trying to open a group of folders in citect SCADA and they are all .rtf files

This is so I can view the file names already used in the folder.

I have tried using the Exec function by opening wordpad first and then the folder but this didnt work

Exec("C:\Program Files\Windows NT\Accessories\wordpad.exe C:\Documents and Settings\operative\Desktop\Batch Reports\Report*.rtf")

The following opens wordpad but you still have to locate the specific folder

Exec("C:\Program Files\Windows NT\Accessories\wordpad.exe")

Is there any way that I could view the folder and all the files contained ?
 
Exec just passes a command line, but doesn't set the directory. Wordpad won't open a command line document with a wildcard.

Knowing the document name (completely), you could just associate the .RTF extension with wordpad, and open the document.
 
The idea was to view all the file names in the folder not to open a specific file name.

Do you know of a way to view the files in a specific folder ?
 
The idea was to view all the file names in the folder not to open a specific file name.

Do you know of a way to view the files in a specific folder ?

I dont see a cicode function to do what you want, but possibly a workaround would be to exec a batch file that does a 'dir ' and pipes it into a file. you could then open the text file and display it.
in your case the batch file would look like

dir "C:\Documents and Settings\operative\Desktop\Batch Reports\Report*.rtf" > C:\listing.txt
 
If you just want to open a folder use:

Exec("C:\Windows\explorer.exe C:\Documents and Settings\operative\Desktop\Batch Reports\",1)
 
Thanks, tragically

Thats all I required a simple button to view the files in the folder, didn't think of explorer.

Thanks again
 

Similar Topics

Hello, the system we use is Scada 7.5 series. We have usb key activ now we need additional key to make the system work, how do we solve this...
Replies
0
Views
37
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
67
Hello, i've been at this for months now, i tried creating accounts on the aveva website but it seems to never approve my accounts or at least when...
Replies
3
Views
98
Hello, I have a running project on Citect v5.42 and simatic net v6.4 I have created a new spare PC and loaded all software like Citect, station...
Replies
0
Views
76
Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
83
Back
Top Bottom