No Idea how to make this
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
No Idea how to make this
Can I get a script that would take the current address, say:
P:\Nilon, John & Lourdes (John Kelly)\Billing
And change it to:
Z:\Dropbox (MED)\MED\Projects\Nilon, John & Lourdes (John Kelly)\Billing
P:\Nilon, John & Lourdes (John Kelly)\Billing
And change it to:
Z:\Dropbox (MED)\MED\Projects\Nilon, John & Lourdes (John Kelly)\Billing
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: No Idea how to make this
Just look up the replace() command
One of my scripts helped you out? Please donate via Paypal
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
Thank you. Maybe I'll learn scripting one day. Is there still a fellow that writes scripts out for $5?
-
mazot
- Posts: 48
- Joined: 20 Apr 2020 23:19
Re: No Idea how to make this
Here's a script not tested. So test on non critical folder first.
Hope it does what you desire if not inform us.
You do not have the required permissions to view the files attached to this post.
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
super kind of you. It doesn't work. brings up dialog, but when selecting desired rule, nothing happens.
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
This script didn't work. Any chance you're able to assist any further?
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: No Idea how to make this
Code: Select all
$dst = "Z:\Dropbox (MED)\MED\Projects\";
$path = $dst . gpc(<curpath>, "component", 2, 2);
text $path;
One of my scripts helped you out? Please donate via Paypal
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
very kind of you. That works. How might I have it automatically open a new tab with the new address?
-
RalphM
- Posts: 2086
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: No Idea how to make this
So far this path is only a text string (for all we know) so this path would first need to be created before you can actually open it in a new tab.
Ralph 
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
Sorry...I'm not sure how your comment helps. The given is that I have a path already. I would like to take highends command, and then insert it into a new tab.
Sorry, no intention to be obnoxious. Maybe I missed something you're trying to say.
Sorry, no intention to be obnoxious. Maybe I missed something you're trying to say.
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: No Idea how to make this
Code: Select all
$dst = "Z:\Dropbox (MED)\MED\Projects\";
$path = $dst . gpc(<curpath>, "component", 2, 2);
tab("new", $path);
-
mikeshick
- Posts: 178
- Joined: 06 Jul 2020 10:28
Re: No Idea how to make this
I'd rather pay someone for coffee or lunch to write few small ones for me from time to time. I appreciate the help.
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: No Idea how to make this
Then drop me a pm (personal message) when you need something...
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club