File Command - Help needed

View: New views
2 Messages — Rating Filter:   Alert me  

File Command - Help needed

by JayaSurya :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi There,

I am using IfExistFile command to check whehter the specified file exist or not. As per syntax we need to pass a Driver command (file) as a parameter. But as per my requirement if file exists i want to go some other block (i want to use other than file driver commands) and continue the operations. How can i proceed further.

I have used the below syntax:

C, IfExistFile, "C:\test.txt", GotoBlockID, "ExistanceBlock"

I think it wont allow otherthan file driver commands. It would be great if any one provides solution for this.

Thanks,
JayaSurya




Re: File Command - Help needed

by Carl Nagle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How about:

OnFileExistGotoBlockID

http://safsdev.sourceforge.net/sqabasic2000/SAFSReference.php?rt=C&lib=DDDriverFlowCommands&cmd=OnFileExistGotoBlockID

In reviewing the documentation for this command I see it is highly lacking, and inconsistent with the actual implementations for both RRAFS and the TID.

The command will take an absolute fullpath filename as you show in your example--which is what I recommend using.


Carl

-----Original Message-----
From: JayaSurya [mailto:jayasurya.kasba@...]
Subject: [safs-rrafs] File Command - Help needed


Hi There,

I am using IfExistFile command to check whehter the specified file exist or
not. As per syntax we need to pass a Driver command (file) as a parameter.
But as per my requirement if file exists i want to go some other block (i
want to use other than file driver commands) and continue the operations.
How can i proceed further.

I have used the below syntax:

C, IfExistFile, "C:\test.txt", GotoBlockID, "ExistanceBlock"

I think it wont allow otherthan file driver commands. It would be great if
any one provides solution for this.

Thanks,
JayaSurya

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
safsdev-rrafs@...
https://lists.sourceforge.net/lists/listinfo/safsdev-rrafs