Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > File Transfer
  New Posts New Posts RSS Feed - FolderExists
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedFolderExists

 Post Reply Post Reply
Author
Message
jf.vigneron View Drop Down
Newbie
Newbie


Joined: January 11 2006
Location: France
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote jf.vigneron Quote  Post ReplyReply Direct Link To This Post Topic: FolderExists
    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
Back to Top
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jf.vigneron View Drop Down
Newbie
Newbie


Joined: January 11 2006
Location: France
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote jf.vigneron Quote  Post ReplyReply Direct Link To This Post 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 [
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.