The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 file path length limit?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 05/28/2004 :  08:36:15 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
HI,

Is there a limit to the number of characters Origin (or Windows 2000) can use when saving files via LabTalk or Origin C?

eg save -w data1 \\server1234567\folder1234567\data1.dat;

Cheers,

Pete

rlewis

Canada
253 Posts

Posted - 05/28/2004 :  09:06:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following are defined in OC_const.h


#define MAXLINE 120
#define NAME_SIZE 25
#define SHORT_NAME_SIZE 12
#define MAXFULLPATH 260 //MAX_PATH in win32 is defined as 260
#define MAX_FILENAME 266 //to allow for .xxx extension
Go to Top of Page

cpyang

USA
1407 Posts

Posted - 05/28/2004 :  10:49:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am not sure about LT, that usually comes with its own limits as part of the interpreter's working.

In OC, are you using


int Worksheet::ExportASCII(LPCSTR lpcszFilename, DWORD dwCntrl, char cSeparator = '\t', int nR1 = 0, int nC1 = 0, int nR2 = -1, int nC2 = -1);



That will then just follow standard OS limitation on path length.

CP


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000