Hi!
I'm new to AMS and I'm trying to build a small tool which creates several folders on a network share from user inputs.
I currently use a batch script but want to switch to AMS.
This is the current content of my batch:
In the first section the user has to enter a four digit order number. The script checks if this already exists.
If the folder doesn't exist the user has to enter a description:
After that the script continues and creates several folders and subfolders (20 pc) with mkdir from %ordernumber% and %projectdescription% on a network share.
In AMS I created an input field (labeled orderno) with a #### input mask. Below this a xbutton which should check if the folder already exists. I created a variable for the network share:
I couldn't file any documentation about how to "expand" the Folder.DoesExist function in combination with the content from the input field.
In the "On Click" event of the xbutton I placed
to get the 4 digits from the input field. How can I combine this with my global _workingshare.. in Folder.DoesExist (if then)? And the next step would be to create the desired folders and subfolders from "ordernotext" inside "_workingshare.."
Thx a lot for any help :-)
Cheers
CWT
I'm new to AMS and I'm trying to build a small tool which creates several folders on a network share from user inputs.
I currently use a batch script but want to switch to AMS.
This is the current content of my batch:
Code:
set /p ordnernumber=Set order number (four digits: 0001, 0123, etc.): if exist \\MYSERVER\SHARE\%date:~-4%\18_%ordernumber%* ECHO WARNING! Order number already exists! &GOTO START
If the folder doesn't exist the user has to enter a description:
Code:
set /p projectdescription=Please enter a description
In AMS I created an input field (labeled orderno) with a #### input mask. Below this a xbutton which should check if the folder already exists. I created a variable for the network share:
Code:
_workingshare = "\\\\MYSERVER\\SHARE"
In the "On Click" event of the xbutton I placed
Code:
ordernotext = Input.GetText("orderno");
Thx a lot for any help :-)
Cheers
CWT
Comment