topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 7:59 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ambienthtc [ switch to compact view ]

Pages: [1]
1
Finished Programs / Re: DONE: make folder set out of a txt file
« on: May 17, 2017, 11:49 AM »
I Want to see if someone might help me sort an UNC issue im having with text2folder.  I have set my batch file to run from the right click windows context menu so I can run it on any folder I want and it works perfect for drives that have drive letters. But gets this type error text2folder error.png when I try to run it on a mounted drive without a drive letter.  It is getting the path and adding its own drive letter but it is adding <> around the path and this is causing text2folder to error out on line#423.

So I need ideas on how to eliminate the <> when the %cd% runs in my batch file.  I have tried Pushd and popd but could not get that work yet either.
Since I am running it as a contextual menu item I have both a registry entry and my batch file and here are both of them

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\cadastralfolders]
@="Create Cadastral Folders"

[HKEY_CLASSES_ROOT\Directory\shell\cadastralfolders\command]
@="cmd.exe /s /k pushd \"%V\\\"&call \"\\\\server2\\data structured\\PROJECTS\\CADASTRAL NETWORK\\Text2Folders\\cadastralfolders.bat\" \"%V\" \"exit\""

@echo off
start "" "\\SERVER2\Data Structured\PROJECTS\CADASTRAL NETWORK\Text2Folders\Text2Folders.exe" "%cd%" "\\SERVER2\Data Structured\PROJECTS\CADASTRAL NETWORK\Text2Folders\cadastral folder stucture.txt" -q
exit

Pages: [1]