02 November 2021, 10:40 | #1 |
Registered User
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? |
02 November 2021, 11:30 | #2 |
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.
|
02 November 2021, 22:07 | #3 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
|
03 November 2021, 05:46 | #4 | |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,170
|
Quote:
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 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 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 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. |
|
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 |
|
|