Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Snippets $FILE_PATH$ without drive?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Christopher Pepper
New Member

United Kingdom
5 Posts

Posted - Feb 17 2011 :  05:00:47 AM  Show Profile  Reply with Quote
Hi Everyone,

I'm just wondering if its possible to have $FILE_PATH$ without the drive? Its not a huge deal for me to just delete it, but it would be nice if it could be done within snippets.

I also have a visual studios macro that does the same as the snippet but without the drive, but its really slow!

-Thanks, Chris

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Feb 17 2011 :  2:05:57 PM  Show Profile  Reply with Quote
Out of interest why do you want to remove the drive letter?

I am just thinking that if you need a "partial" full path then this could quickly get a little messy since how do you specify how "partial" with a simple VA Snippet token?

Have you considered writing a simple IDE macro to do a find and replace to remove the drive letter on the current line?

You might find this helpful, since it shows how I used the IDE find and replace dialog in an IDE macro:

http://support.wholetomato.com?W444

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000