The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
FolderExists |
Post Reply |
Author | |
jf.vigneron
Newbie Joined: January 11 2006 Location: France Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: August 17 2015 at 2:32am |
He everybody,
Do you have a method to test if a folder exists on the client side ? The same as FildeExists but for folders Thanks in advance |
|
Shrek59
Senior Member Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
|
Hi,
Check the samples that come with AccuTerm (should be in C:\Program Files (x86)\Atwin71\Samples\PICKBP). Specifically, look at the ATTESTDIR program. Cheers, Brian |
|
jf.vigneron
Newbie Joined: January 11 2006 Location: France Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Thans a lot Shrek , for readers the sample is store in the file SAMPLES into the accuterm account. (When you install the accuterm account on your server)
>CT SAMPLES ATTESTDIR ATTESTDIR 0001 SUBROUTINE ATTESTDIR(PATH,STAT) 0002 * Test for valid directory using AccuTerm Script 0003 EQU ESC TO CHAR(27), STX TO CHAR(2), CR TO CHAR(13), EM TO CHAR(25) 0004 SCR='On Error Resume Next' 0005 SCR=SCR:EM:'X=0' 0006 SCR=SCR:EM:'X=GetAttr("':PATH:'")' 0007 SCR=SCR:EM:'InitSession.Output CStr((X And 16) / 16) & Chr$(13)' 0008 PRINT ESC:STX:'P':SCR:CR: 0009 ECHO OFF 0010 PROMPT '' 0011 INPUT STAT: 0012 PROMPT '?' 0013 ECHO ON 0014 RETURN 0015 END [ |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |