English Amiga Board


Go Back   English Amiga Board > Support > support.AmigaOS

 
 
Thread Tools
Old 02 November 2021, 10:40   #1
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,170
symlinking a folder to a device?

recently setup my emulated amiga to support my SMB shares on my NAS and Winblows PC, works fine, then got bored and smoothed over the process, instead of adding more copy/paste stuff into say my user-startup for each and every share individually, i just made a change to my user-startup that executes any and all scripts in a config folder, so now i just copy/paste a shares icon and edit the new config, nice and ordered/easy.

This is great and all, but as i am doing this with SMBFS, now i am facing the bigger issue of of these shares spamming the living daylights out of my device list in requesters (not that big a deal but looks messy) and ofc my workbench has tons of icons i dont want to see.

Ofc OS3.2 lets me hide these devices, so i tried making a "Shares" folder, and left it out on workbench, inside i simply made icons with the same names as the hidden devices, edited their icons, made them projects, set them to use IconX and edited a script that simply calls "OpenWin NAS1:"

This is where it goes horribly wrong, as the devices are hidden, OpenWin refuses/or is now unable to open a window for that device, it works if i unhide the devices, all the icons in the folder i made all open the devices they shortcut to, but once hidden it doesnt work.

So then i tried using makelink, except that doesnt work accross volumes, so i cant seem to link a folder to a device, cant link the icon info files as a workaround either, nothing i can think of works.

Is there some magic utility/thingymajig i havent thought of which will let me click an icon in a folder which opens the window for a device while those devices are hidden in workbench prefs?
DisasterIncarna is offline  
Old 02 November 2021, 11:30   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
I don't know about hidden devices but you may try to use WB (e.g. open a window) via its ARexx port called WORKBENCH.
daxb is offline  
Old 02 November 2021, 22:07   #3
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by DisasterIncarna View Post
So then i tried using makelink, except that doesnt work accross volumes
Hardlinks only work inside the same volume. Use the SOFT keyword to get a softlink.
thomas is offline  
Old 03 November 2021, 05:46   #4
DisasterIncarna
Registered User
 
DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 1,170
Quote:
Originally Posted by thomas View Post
Hardlinks only work inside the same volume. Use the SOFT keyword to get a softlink.
Thanks this still fails when trying it accross volumes, linking a folder to a device, BUT weirdly enough i noticed that if i do the same thing but make the resulting folder appear in RAM:Shares, instead of SYS:Shares then it works, the folders appear like normal only now they are underlined.

midway thru my startup-sequence i now do this.

Code:
; Prepare RAM Shares folder and Left Out Icon
  Makedir RAM:Shares
  MakeLink RAM:Shares.info TO S:Shares.info SOFT
  MakeLink RAM:.backdrop TO S:Shares.backdrop SOFT
; END SMB Shares Folder
then after the LOADWB command i added this... (might throw this as a project icon in WBStartup)

Code:
  Makedir RAM:T/SMB-Scripts
  Copy SYS:Shares/Configs/~(#?.info) RAM:T/SMB-Scripts QUIET
  Type RAM:T/SMB-Scripts/Configs/#? > RAM:T/SMB-Devices
  Execute RAM:T/SMB-Devices >NIL:
  Delete RAM:T/SMB-Devices QUIET
this means i can have separate files for each share in my SYS:Shares/Configs folder, each get executed separately (similar to how our Monitor drivers are executed), heres an example config file.

Code:
RUN <>NIL: SMBFS Workgroup=WORKGROUP User=AmigaUser Password=AmigaPassword123789 service=//192.168.1.20/example-nas-folder DEVICE=EXA1: VOLUME=Example1: TRANSLATE=L:FileSystem_Trans/INTL.crossdos QUIET
Makelink RAM:Shares/Example1 EXA1: SOFT
Using this setup, i can now click into the shares folder which is left out of the ramdisk, and inside all my mounted SMB shares appear as folders, and best of all, unlike before the folders still function even with the devices hidden from workbench.

Thanks for the assist, 1 more quality of life feature added to my workbench setup...


Last edited by DisasterIncarna; 04 November 2021 at 01:00.
DisasterIncarna is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Device type in ATAPI tape IDENTIFY DEVICE data mark_k support.WinUAE 0 17 March 2019 22:21
HDF behavior different between uaehf.device and C= scsi.device? Amiga1992 support.WinUAE 9 15 March 2018 01:49
Zipping a folder's content without the folder itself Frankie support.Apps 0 14 September 2017 08:28
K13 asm example of gameport.device and keyboard.device redblade Coders. General 29 20 January 2011 18:32
uaehf.device and HDToolbox: Error 224 reading device description Ebster support.WinUAE 3 16 September 2008 09:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:04.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08111 seconds with 13 queries