Print Page | Close Window

FolderExists

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: File Transfer
Forum Description: Help with uploading & downloading database and document files
URL: https://forum.asent.com/forum_posts.asp?TID=2531
Printed Date: March 26 2026 at 8:50pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: FolderExists
Posted By: jf.vigneron
Subject: FolderExists
Date 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



Replies:
Posted By: Shrek59
Date Posted: August 17 2015 at 2:47am
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


Posted By: jf.vigneron
Date Posted: August 18 2015 at 12:50am
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 [



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net