Ted -
And if you declare iDir = \\machine\folder\<file:///\\machine\folder\>?
The extra \ at the end of the line should provide a fully qualified UNC path.
Thank you in advance,
Calvin Dekker
Office: 630-672-7688 Ext. 1484
Email: calvin@...<mailto:calvin@...>
http://www.codabears.com<http://www.codabears.com/>
[cid:image001.jpg@01CE8AC9.D80C7E00]<http://www.codabears.com/>
Solutions for Epiday living.
"No trees were harmed during the sending of this message, however a large number of electrons were terribly inconvenienced."
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ted Koch
Sent: Friday, July 26, 2013 3:34 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] 4GL Get Files In Directory
Hi,
It's not even getting to that line because it does not see the directory at INPUT FROM OS-DIR (cDir) ECHO.
________________________________
From: Calvin Dekker <calvind@...<mailto:calvind%40codabears.com>>
To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
Sent: Friday, July 26, 2013 3:35 PM
Subject: RE: [Vantage] 4GL Get Files In Directory
Ted -
Are you able to verify that you added the '\' to the path like this:
FILE-INFO:FILE-NAME = iDir + "\" + cFileStream.
Thank you in advance,
Calvin Dekker
Office: 630-672-7688 Ext. 1484
Email: calvin@...<mailto:calvin%40codabears.com><mailto:calvin@...<mailto:calvin%40codabears.com>>
http://www.codabears.com<http://www.codabears.com/>
[cid:image001.jpg@01CE8A0B.86117F10<mailto:image001.jpg%4001CE8A0B.86117F10>]<http://www.codabears.com/>
Solutions for Epiday living.
"No trees were harmed during the sending of this message, however a large number of electrons were terribly inconvenienced."
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of tkoch77
Sent: Friday, July 26, 2013 1:04 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] 4GL Get Files In Directory
Is this possible to do in a BPM with a folder that is a network share? I have this bit of code but keeps turning up "<directory>" not found. Has anyone accomplished this, it works if i specify a local drive for iDir but does not work if iDir is a network location (\\computer\fileshare<file:///\\computer\fileshare>)
Thanks,
-Ted
DEF VAR cFileStream AS CHARACTER NO-UNDO.
INPUT FROM OS-DIR(iDir) ECHO.
REPEAT:
IMPORT cFileStream.
FILE-INFO:FILE-NAME = iDir + cFileStream.
MESSAGE cFileStream.
END.
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
And if you declare iDir = \\machine\folder\<file:///\\machine\folder\>?
The extra \ at the end of the line should provide a fully qualified UNC path.
Thank you in advance,
Calvin Dekker
Office: 630-672-7688 Ext. 1484
Email: calvin@...<mailto:calvin@...>
http://www.codabears.com<http://www.codabears.com/>
[cid:image001.jpg@01CE8AC9.D80C7E00]<http://www.codabears.com/>
Solutions for Epiday living.
"No trees were harmed during the sending of this message, however a large number of electrons were terribly inconvenienced."
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ted Koch
Sent: Friday, July 26, 2013 3:34 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] 4GL Get Files In Directory
Hi,
It's not even getting to that line because it does not see the directory at INPUT FROM OS-DIR (cDir) ECHO.
________________________________
From: Calvin Dekker <calvind@...<mailto:calvind%40codabears.com>>
To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
Sent: Friday, July 26, 2013 3:35 PM
Subject: RE: [Vantage] 4GL Get Files In Directory
Ted -
Are you able to verify that you added the '\' to the path like this:
FILE-INFO:FILE-NAME = iDir + "\" + cFileStream.
Thank you in advance,
Calvin Dekker
Office: 630-672-7688 Ext. 1484
Email: calvin@...<mailto:calvin%40codabears.com><mailto:calvin@...<mailto:calvin%40codabears.com>>
http://www.codabears.com<http://www.codabears.com/>
[cid:image001.jpg@01CE8A0B.86117F10<mailto:image001.jpg%4001CE8A0B.86117F10>]<http://www.codabears.com/>
Solutions for Epiday living.
"No trees were harmed during the sending of this message, however a large number of electrons were terribly inconvenienced."
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of tkoch77
Sent: Friday, July 26, 2013 1:04 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] 4GL Get Files In Directory
Is this possible to do in a BPM with a folder that is a network share? I have this bit of code but keeps turning up "<directory>" not found. Has anyone accomplished this, it works if i specify a local drive for iDir but does not work if iDir is a network location (\\computer\fileshare<file:///\\computer\fileshare>)
Thanks,
-Ted
DEF VAR cFileStream AS CHARACTER NO-UNDO.
INPUT FROM OS-DIR(iDir) ECHO.
REPEAT:
IMPORT cFileStream.
FILE-INFO:FILE-NAME = iDir + cFileStream.
MESSAGE cFileStream.
END.
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]