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, 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
68
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
73
I have a running backup of Citect and plc and I want to make a spare PC station so I have installed the win XP and somatic net v6.0 and import the...
Replies
3
Views
121
I am trying to display a variable within a cicode function onto a graphics page. This function queries a SQL database. I can get the value onto a...
Replies
3
Views
286
Looking for some help with the connection issue between Citect 2018 and Top Server v6 for Opto22. I’m setting all this up to communicate with some...
Replies
0
Views
118
Back
Top Bottom