Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
File manipulation
 Login/Join
 
Gold member
posted
Is there a way to access files and folders within a Focus request? I'm trying to access a folder over the network and then check to see the files in that folder. I know that the dos command dir > list.txt will give the list of files... I just have to see the folder.

I would have to access it like //compname/folder.

thanks,

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
<Pietro De Santis>
posted
this sample might help:

-SET &WINDIR_FILE = 'C:\TEMP\windir.txt';

DOS C:
-RUN

CD C:\IBI\Apps\p700\
-RUN

DOS DIR > &WINDIR_FILE
-RUN

FILEDEF WINDIR DISK &WINDIR_FILE
-RUN

TABLE FILE WINDIR
PRINT *
WHERE FILE_NAME CONTAINS '.txt' OR FILE_NAME CONTAINS '.TXT'
END
-RUN
 
Report This Post
Gold member
posted Hide Post
It seems that DOS can't CD onto a network drive. I found one that works,

DOS PUSHD \\compname\folder
..
..

DOS POPD

thanks anyways,

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
Expert
posted Hide Post
Leo, we use CMD instead of DOS and we're in a win2k environment
The CMD command works for us and allows us to move all over the network, (once we have overridden win2k's annoying tendency to refuse to maintain persistent connections)
so, things like
CMD NET SEND computername &MYMESSAGE &LINES
will work within a fex as it finishes executing.
and
CMD CD wherever
CMD DIR *.FEX > SOMEFILE.TXT
and then read the file, as Pietro suggests.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Using CMD instead of DOS I think does the same thing, I can't CD onto a network drive so I would still have to use the PUSH POP method.

thanks anyways,

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
Expert
posted Hide Post
Leo, do you have the network drives mapped?
As i read your post again, it looks as tho you don't have them mapped, but rather you are looking to reference computers by name rather than drive letter. If thats the case, that's very interesting way you have worked out to do that. Would you let me know?? That would get around that whole persistent-connection for us.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Yes I am trying to access the computer through the UNC path instead of mapping it. But I couldn't get it working that way because of our Network setup. Instead I opted to create a batch file that will do all the CMD/DOS commands then execute the fex program to finish it off.

thanks anyways,

Leo
 
Posts: 96 | Location: Winnipeg, Manitoba, Canada | Registered: January 22, 2004Report This Post
Silver Member
posted Hide Post
Leo,
This command works from my local fex:
CMD DIR \\MKDEV01\C$\*.BAT

Of course, there has to be some share name, in this case I used C$, which is the default for us.
 
Posts: 44 | Location: New York City | Registered: May 23, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders