Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2008, 07:49:25 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  How to get the loaded filename?
Pages: 1   Go Down
Print
Author Topic: How to get the loaded filename?  (Read 900 times)
0 Members and 1 Guest are viewing this topic.
CNC-Steuerung
Active Member

Offline Offline

Posts: 42


View Profile
« on: January 04, 2008, 03:50:42 PM »

Hi,

is there any possibility to get the actual loaded filename as string in VB?

That would be a help for displaying if long pathnames does exist in your system, or for the
very nice "percent complete" function as descripted in another thread...

Thanks and regards,

Wolfram


Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 766


Briceville, TN, USA



View Profile WWW
« Reply #1 on: January 04, 2008, 04:20:58 PM »

Dim a string variable called "Filename" then set it = to your pulled in filename.
Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
CNC-Steuerung
Active Member

Offline Offline

Posts: 42


View Profile
« Reply #2 on: January 04, 2008, 04:44:46 PM »

Thanks for your fast reply,
but Ive doesnt understand it, sorry.. Huh

The file is loaded and displayed. The whole file/pathinformation is displayed in
the "file" - label, placed on the screen with screen4...

regards,

Wolfram




* m3-filename.png (24.06 KB, 257x252 - viewed 183 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 766


Briceville, TN, USA



View Profile WWW
« Reply #3 on: January 04, 2008, 10:51:00 PM »

sorry,

   You will probably have to do a C++ plugin to get the File that is loaded varible.
scott
Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
jogyz
Regular Member

Offline Offline

Posts: 1


View Profile
« Reply #4 on: June 20, 2008, 02:33:52 AM »

Hello,

Function FileName()

covers name and path of the current file.  Smiley

Regards,
Jörg
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!