Hello,I'm trying to write data to an INI file, I've got some code to read it: I've tried to modify this code to get it to be able to write to INI files, but I haven't had much success.I know there are DLL's designed for this, but I would like to have my application so it can be distributed as a single EXE.Also, I know there is My.Settings, but I cannot use this, as this INI file is used by another application, that I have not developed.So, I was wondering if anyone could help me modify this code to write to an INI file, something like
Hi Marco,Welcome to the SAP Community!I moved your question from \\\"Logging of UI SAP GUI for Windows\\\" to \\\"SAP Gateway for Microsoft\\\" as I believe this latter is more relevant to connecting .NET applications to SAP systems. There might still be a better tag for this, perhaps in one of the development tags, but nevertheless this should be closer to what you're looking for than your original tag. Choosing the right tag is important in order to get your question in front of people who may actually be able to help. You can find a complete list of available tags at -Community-Tags.xlsx.Cheers,Matt\",\"author\":\"username\":\"matt.fraser\",\"displayName\":\"Matt Fraser\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":150201,\"creationDate\":1489082789000,\"activeRevisionId\":253415,\"lastActivity\":1489082789000,\"parentId\":150012,\"originalParentId\":150012,\"likeCount\":2,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"score\":2,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false}]}}"); const simplifiedQuestionView = JSON.parse("true"); (function() window.pageContext = mergeDeep(pageContext, question: id: 150012, plug: "vbnet-logon-with-cutomized-ini", votes: 0, questionTitle: "VB.net logon with cutomized ini", isClosed: false, isLocked: false, isRedirected: false, redirectedFromTitle: "", redirectedFromId: "", closedStatusData: JSON.parse(""), userVoted: false, relations: JSON.parse("\"canClose\":false,\"canUnredirect\":false,\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"canReopen\":false,\"type\":\"question\",\"canVoteUpOrCancel\":false,\"canViewRevisions\":true,\"canUnlock\":false,\"reported\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canCancelReport\":false,\"canComment\":true,\"isCurrentUserAuthor\":false,\"canViewReports\":false"), isQuestionAccepted: false , childToViewInfo: id: "" , comments: JSON.parse("\"150012\":\"rootParentId\":150012,\"commentsCount\":1,\"comments\":[\"body\":\"Hi Marco,Welcome to the SAP Community!I moved your question from \\\"Logging of UI SAP GUI for Windows\\\" to \\\"SAP Gateway for Microsoft\\\" as I believe this latter is more relevant to connecting .NET applications to SAP systems. There might still be a better tag for this, perhaps in one of the development tags, but nevertheless this should be closer to what you're looking for than your original tag. Choosing the right tag is important in order to get your question in front of people who may actually be able to help. You can find a complete list of available tags at -Community-Tags.xlsx.Cheers,Matt\",\"author\":\"username\":\"matt.fraser\",\"displayName\":\"Matt Fraser\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":150201,\"creationDate\":1489082789000,\"activeRevisionId\":253415,\"lastActivity\":1489082789000,\"parentId\":150012,\"originalParentId\":150012,\"likeCount\":2,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"score\":2,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false]"), answerPager: answersCount: 0, page: 1, pageSize: 10, pageCount: 0, sort: "votes" , answers: JSON.parse(""), answerForm: formAction: "/answers/150012/post.json", textareaName: "body", textareaErrors: "", isAttachmentsEnabled: true, answerEditorialGuideline: title: "Before answering", content: "You should only submit an answer when you are proposing a solution to the poster\'s problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.", links: [ title: "Rules of Engagement", href: " -of-engagement.html", ] , answerMinBodyLength: '10', answerMaxBodyLength: '20000' , currentUser: sapInternalId: '', permissions: canVoteUpOrCancel: false, canVoteDownOrCancel: false, canModerate: false, , isVotedUp: false, isVotedDown: false , alerts: alertModeratorMinLength : "It should be given a proper explanation about why the content is inappropriate.", alertModeratorMinLengthValue : "10", alreadyReportedMessage : "You already have an active moderator alert for this content." , url: profileApiBaseUrl: ' -api.services.sap.com', followUnfollowQuestion: '/sap/nodeSubscription.json', isFollowingQuestion: '/sap/isFollowingNode.json', vote: voteUp: '/commands/0/voteup.json', voteDown: '/commands/0/votedown.json', cancelVote: '/commands/0/cancelvote.json' , rss: answers: '/feed/150012/answers.rss', answersAndComments: '/feed/150012/comments-and-answers.rss' , authorizeUploadContext: type: 'answer' , atMention: userSearchServiceUrl: ' ', currentUserName: '', useNewUSSCORS: true, atMentionDelayMs: 100, showMentionInRedactor: true , attachmentSettings: commentMaxAttachments: '2', answerMaxAttachments: '10', commentMaxAttachmentSizeBytes: '1048576', answerMaxAttachmentSizeBytes: '1048576', commentAttachmentsSizeBytesTotal: '2097152', answerAttachmentsSizeBytesTotal: '10485760' , editor: editorClipboardUploadEnabled: true ) )(); Home
Community
Ask a Question
Write a Blog Post
Login / Sign-up Search Questions and Answers 0 Former Member Mar 09, 2017 at 06:01 PM VB.net logon with cutomized ini 230 Views Last edit Mar 09, 2017 at 06:03 PM 2 rev Follow RSS Feed Hi everybody.First of all sorry for my english :)
read and write ini file vb net
I've a problem trying to login to SAP with a vb.net script.The script works well with the default ini file, but I need to launch the logon specifying a secondary ini file. I've read many post about it, one of them suggested to add the line of the custom ini to the default one. The problem is that my company default ini file is on a server and I cannot modify it.
When the Text driver is used, the format of the text file is determined by using a schema information file. The schema information file is always named Schema.ini and always kept in the same directory as the text data source. The schema information file provides the IISAM with information about the general format of the file, the column name and data type information, and several other data characteristics. A Schema.ini file is always required for accessing fixed-length data. You should use a Schema.ini file when your text table contains DateTime, Currency, or Decimal data, or any time that you want more control over the handling of the data in the table.
The Text ISAM will obtain initial values from the registry, not from Schema.ini. The same default file format applies to all new text data tables. All files that were created by the CREATE TABLE statement inherit those same default format values, which are set by selecting file format values in the Define Text Format dialog box with chosen in the Tables list. If the values in the registry differ from the values in Schema.ini, the values in the registry will be overwritten by the values from Schema.ini.
The Format option in Schema.ini specifies the format of the text file. The Text IISAM can read the format automatically from most character-delimited files. You can use any single character as a delimiter in the file except the double quotation mark ("). The Format setting in Schema.ini overrides the setting in the Windows Registry, file by file. The following table lists the valid values for the Format option.
The data types of the fields can also be determined. Use the MaxScanRows option to indicate how many rows should be scanned when determining the column types. If you set MaxScanRows to 0, the whole file is scanned. The MaxScanRows setting in Schema.ini overrides the setting in the Windows Registry, file by file.
The next entry designates fields in a table by using the column number (Coln) option, which is optional for character-delimited files and required for fixed-length files. The example shows the Schema.ini entries for two fields, a 10-character CustomerNumber text field and a 30-character CustomerName text field: 2ff7e9595c
Comments