In prior OS (Windows 7 etc. Click the red X button on the button bar. Are the models of infinitesimal analysis (philosophically) circular? Would Marx consider salary workers to be members of the proleteriat? SUBST is an external command. If you map a drive with the NET command, use the NET command to remove it, similarly if you substitute a drive letter with SUBST then use the SUBST command to remove it. Mapping folders to drive letters can save you a lot of time and Visual Subst makes adding virtual drives easy. http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/2e414f3c-98dd-4d8b-a3a3-88cfa0e7594c/. Create a text file named 'mapdrive.reg' with these contents: Then should just be able to double-click on it to set up, no 3rd party tools needed. I tried using a powershell drive, but it doesn't work with other windows programs (e.g. rev2023.1.18.43176. Editted, please review. For the permanent mapping to only affect the currently logged on user, go to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, 2. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. How to deal with old-school administrators not understanding my methods? It does this by adding an entry to Dos devices in the registry. Open the Start menu and enter cmd.exe (without the quotes) in the Search programs and files box. This package was approved by moderator flcdrg on 09 Mar 2020. When you have a lot of files it is really important that everything is stored in awell ordered directory structure so files can be found more easily. how to change the Volume of a virtual drive created by subst? How dry does a rock/metal vocal have to be during recording? preventing 260-char-limit). Use /P:No to force the drive to disconnect at logoff. What Are Tracking Cookies and Are They Bad? Use this same process to assign different drive letters to all your frequently used directories. You can extract files in Windows by simply right-clicking on the ZIP file and choosing Extract All. Don't use subst (insert appropriate 'computerName' and 'pathName'): I adapted this from Hank Arnold's suggestion at this discussion of mapping local drives. I tried using a powershell drive, but it doesn't work with other windows programs (e.g. Source: http://networkadminkb.com/KB/a446/how-to-use-drive-letters-mount-points-the-same-disk-drive.aspx. How to pass duration to lilypond function, Indefinite article before noun starting with "the", An adverb which means "doing without understanding". The best answers are voted up and rise to the top, Not the answer you're looking for? How Intuit improves security, latency, and development velocity with a Site Maintenance - Friday, January 20, 2023 02:00 - 05:00 UTC (Thursday, Jan Use of ChatGPT is now banned on Super User, Map folder as drive permanently in Windows. If you want the mapping to work all the time, a simple solution is to run Subst automatically during every boot. SF story, telepathic boy hunted as vampire (pre-1980), In Windows Vista and above, UAC will pop up, click, Open the "Disk Management" control panel item, Select the drive where you wish to place the image, Select "Create VHD" from the actions menu, Enter the location, size and options for the drive, Right-click the newly mounted "Disk" (the grey bit to the left) and initialise the drive, Right-click the unallocated space and add a new volume. Click cmd.exe in the results to open the command prompt window. Mount a folder as a removable drive on Windows, An equational basis for the variety generated by the class of partition lattices. :::: Example: Drop a batch file in your Startup folder that does all the SUBSTs that you want to do. How do I submit an offer to buy an expired domain? rev2023.1.18.43176. The only difference is adding /P to the command will make the mapping persistent and it will remain after a reboot. Thank you! To make a persistent redirection, you can edit the registry. it. Type Subst without arguments to check the mapping has worked as you are not notified if it was successful. this is batch script and it works a bit slower than binary analog. Thanks for contributing an answer to Server Fault! For this example, we will assign a drive letter for the following folder: C:\Users\Lori Kaufman\Documents\My Work. The new mapping will immediately appear in the substituted folders list. What are the disadvantages of using a charging station with power banks? However restart of a system destroys a virtual disk. Browse to the drive of the folder you want to map. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Joey: That solution doesn't seem to work under Windows 7. ), it adds both. When running an application with Administrative privileges, the substituted drive is not visible to the application. Answer is yes! The subst command is not persistent that I know of. Although it uses the same API as Subst, the mappings created in Visual Subst are not visible when using Subst on the command line. I am sharing the code so that others may not encounter the troubles I had. Create the proper registry keys for the SUBST drive letter; Create the proper registry keys for the host drive letter (optional, works around the host drive label override caveat); Re-create the SUBST drive to see label changes applied. If you wan to create a persistent one, just the /P argument as shown: So to create a persistent virtual hard drive (Z) to the Outlook data folder I mentioned above, I would issue the following command: Now your new drive will show up as a local disk in My Computer: Clicking on the disk will bring your directly into the Outlook folder. To select a folder to map to the selected drive letter, click the Browse button to the right of the edit box. FYI, if you type the variable into RegEdit interactively, do not double the backslashes. To unmap drive X: again, the following command needs to by typed at the command prompt: A custom label can[citation needed] be assigned to a drive letter created in this way by way of a registry key, which can be created by renaming (select "rename" from the drive letter context menu or press .mw-parser-output .keyboard-key{border:1px solid #aaa;border-radius:0.2em;box-shadow:0.1em 0.1em 0.2em rgba(0,0,0,0.1);background-color:#f9f9f9;background-image:linear-gradient(to bottom,#eee,#f9f9f9,#eee);color:#000;padding:0.1em 0.3em;font-family:inherit;font-size:0.85em}F2) the SUBST drive in Windows Explorer/My Computer. Type SUBST with no parameters to display a list of current virtual drives. This is not preferred, as the mapping only appears at the end of user logon. When you restart your computer, your drive will still be there. In criminal law, mens rea ( / mnz re /; Law Latin for " guilty mind " [1]) is the mental state of the crime committed and the legal determination of a crime may depend upon both a mental state and actus reus, like the designation of a homicide as murder is a matter of intention to commit a crime or in some jurisidctions . In Windows Vista or 7 open Explorer, press Alt and go to Tools > Map network drive. Look at the autostart items and see if you can find any subst command. (Basically Dog-people). Asking for help, clarification, or responding to other answers. Online Tech Tips is part of the AK Internet Consulting publishing family. It is much more convenient to access my files directly as. deleted files go to the recycle bin. 3. Associates a path with a drive letter and extends the standard SUBST command allowing to create persistent substituted drives between startups. Substitute a drive letter for a network or local path. Not the answer you're looking for? This is because the subst command is permission specific, you can test this yourself if you try running it with an admin command prompt vs a standard one. And with that method, I can confirm that if I navigate to the E: drive and delete a file, it does go to the recycle bin. This article is the result of the work devoted to availability of joining both features. However, unlike SUBST this is a drive in it's own right and has the full set of windows features, e.g. I have some folder, say C:\foo I want to mount as drive M:\. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Change the paths and name to suit your situation. Removing unreal/gift co-authors previously added because of academic bullying, Toggle some bits and get an actual square. Then it came more difficult, so changed to virtualdrive 2000, and then using daemon tools or nero image drive. Looking to protect enchantment in Mono Black, Two parallel diagonal lines on a Schengen passport stamp. MS-DOS 3.1x and above Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Well times go by. I never had this problem with mapped folders in Win XP. This page was last edited on 6 January 2023, at 10:32. Right click on DOS Devices > New > String value, enter the drive letter to map the folder to, including the colon. Windows key + R to 'run' and shell:startup to open the startup folder, Some of my observations: if you just set the values under. What to do? "ERROR: column "a" does not exist" when referencing column alias, How to pass duration to lilypond function. What non-academic job options are there for a PhD in algebraic topology? ForFolder do not press Browse but Instead enter the following into the text box using your own arguments: Using just Localhostshould be fine for most users. Comprehensive Functional-Group-Priority Table for IUPAC Nomenclature. He began blogging in 2007 and quit his job in 2010 to blog full-time. If you have a any questions, feel free to comment. NET USE - Map a drive letter to a network drive. It is even powerful enough to change user account passwords or create/delete user accounts. I added another method that is persistent. The Subst command is pretty much unchanged in how it works and is still present in the latest versions of Windows 10. The arguments are virtually the same as Subst. You signed in with another tab or window. \??\F:\. The vSubst executable will be copied to the Windows folder so make sure to run vSubst as administrator or the copy to Windows might fail. Select the drive letter from the drop downmenu and enter the path to the folder manually or browse for it by pressing the magnifying glass on the right. 1. the fully qualified name with drive, path, and extension, which is found possibly by name only via the PATH environment variable, or through SUBST, JOIN and ASSIGN filesystem mappings. The SUBST command works in Windows 7 but the substituted drive is only visible in the same privilege level. You can do this in PowerShell as well. If not, the SUBST command in Windows allows you to map a long file path to a drive letter. Double-click the shortcut to start the program. Then press the Plus button to assign the mapping and it will appear in the main window. Stopping electric arcs between layers in PCB - big PCB burn, Transforming non-normal data to be normal in R, Vanishing of a product of cyclotomic polynomials in characteristic 2. D . If the network resource is unavailable (ie the server is down) SUBST will continually
Press Finish when done. Two parallel diagonal lines on a Schengen passport stamp. psubst is a nifty little program that you can use to create persistent substituted drive in Windows that will remain even after restarting. We will discuss three ways to map folders to drive letters. The Subst command is pretty much unchanged in how it works and is still present in the latest versions of Windows 10. Managed to use up almost all of my drive letters :-). Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. I thought I could get around the problem by creating a folder C:\V and using Subst V: C:\V This works if I enter the Subst command after each login. 1. Or maybe there is an alternative to the subst command? So that, for example, if you currently boot from "D:\Windows" then you can edit the HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices key of Windows that is installed in a "C:\Windows" folder, for an instance by doing the following actions: The easiest way to do this is to create a registry file (.reg), and double click the file to import the settings into the registry. directly. What is the problem with my script and how can I get the it to run multiple times in the same powershell instance? If not, subst displays the following error message: Invalid parameter - drive1: To create a virtual drive z for the path b:\user\betty\forms, type: Instead of typing the full path, you can reach this directory by typing the letter of the virtual drive followed by a colon as follows: More info about Internet Explorer and Microsoft Edge. In the command prompt window, type the following command to associate drive Y: with the folder. Availability Subst syntax Subst examples Availability Subst is an external command that is available for the following Microsoft operating systems as subst.exe. Thanks! Does Windows (XP or later) have a built-in way to create persitent drive mappings, like the ones SUBST creates? It wont work otherwise. As well as the standard SUBST command this script named as PSUBST.BAT implements all standard features of the command. You can easily make your own batch script with just a couple of lines but this ready made script called Psubst is more Advanced. e.g. Has anyone noticed this behavior and possibly found a workaround? That means the drive letter can be used by other applications during boot. It'll immediately create a virtual drive H: which will represent the "Wallpapers" folder: Before using subst command: I had guessed that \\myComputerName\c might work, but I didn't know to apply the $. Checking the box at the bottom will silently run Visual Subst during startup to assign the drive letters. Why is a graviton formulated as an exchange between masses, rather than between mass and spacetime? On the Installation Options screen, select the check boxes for the Program Shortcuts you want to install and click Next. Find centralized, trusted content and collaborate around the technologies you use most. Undocumented behaviour: if a drive is substed using characters other than A-Z ($,#, :, !, 0-9) it will not appear in Windows Explorer or in the drives reported by SUBST. To select the Z: drive is enough. Make sure to enclose the folder path in quotes if it contains spaces. Typing the /P or /PF argument you run the tool with the extended features to work with persistent virtual disks: Print all virtual persistent drives (read from the registry). But what to do, when a disk is To save the settings for Visual Subst, click the floppy disk button on the button bar. After configuring the registry the computer must be rebooted for the changes to take effect. Psubst [Drive:] /D /P will remove a persistent drive, Psubst /P will list current persistent drives, and Psubst [Drive:] /D will just remove a normal mapped drive. Why is sending so few tanks to Ukraine considered significant? Note: Technician / Consultant Worked out great for me! Map a drive (M:) to \\yourcomputername\myshare. Check here for PSubst version 3 batch file, Compatible with Windows 7, Windows 8, Windows 10, Windows Server 2012. This option is not recommended for inexperienced users. If you did use one of those other methods already, and are still not getting deleted files sent to the recycle bin, then Ive no idea, sorry! Add a string (REG_SZ) value to: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices. This key willassociate virtual drive names with paths and it does so very early in the boot process. Note that this actually helps when you have to use SUBST (e.g. Which of the above methods did you use to map the drive? Open the Start menu and enter "cmd.exe" (without the quotes) in the Search programs and files box. Open Regedit and navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. 5. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Thus, even though the mapped drive in this case is on your machine, the fact that that it is mapped as a network drive may cause windows to treat it as a drive mapped from another machine, with all of the attendant behavior that using a network drive entails. So whats the problem with using the SUBST command? To also map the folder immediately you will need to run the same command again but without /P. Obviously this is dependent on your OS as to whether you need anything 3rd party to achieve it. Our articles have been read over 275 million times since we launched in 2007. An easy solution to get quick access to one of these folders is mapping it to a drive letter. Books in which disembodied brains in blue fluid try to enslave humanity, Determine whether the function has a limit. There is system feature to establish virtual disks from the system registry: It is enough to create a text file with the extension .REG and run it. subst m: c:\foo. Is there a way to do it without 3rd party tools? Not only that, but you can have other programs, such as services, etc, access the virtual drive even before Windows fully starts up because the drive will be available. E: Have been working in dos for long time but never knew about it. is removed, but can be deleted manually. Click the button below to subscribe! Great tip!! NOTE: If there are spaces in the path name, be sure to put quotes around the full path. How do you comment out code in PowerShell? M: ), then the data to: But what to do, when the disk is required on early steps of the startup? Syntax SUBST drive_letter: path SUBST SUBST drive_letter: /D Key SUBST with no parameters will display current SUBST drives /D : Delete the drive_letter substitution. In algorithms for matrix multiplication (eg Strassen), why do we say n is equal to the number of rows and not the number of elements in both matrices? A couple of examples would be: \\MyDesktopPC\C$\users\raymondcc\desktop\myfiles\downloads\apps. To learn more, see our tips on writing great answers. one that truly represents a share from another machine on the network): the deleted file does not go to the recycle bin (its fully deleted). Download the archive following by the download link, unpack it or checkout the source and put the single file to comfortable place in your hard disk. Although a mapped drive should automatically appear the next time you logon, an extra argument can be added in case it doesnt. First, I edited the registry, but was unable to get it to work. That means when you restart the computer, your drive is gone. In regedit go to the following path: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ DOS Devices. Most probably I need have a look to your development closer. Did not find an equivalent in command prompt. Method 2: Use the psubst Utility. Why did OpenSSH create its own key format, and not use PKCS#8? It's a command used for substituting local paths on physical and logical drives, known as virtual drives. Associates a path with a drive letter. My Computer -> Tools -> Map Network Drive) and take advantage of the fact that your local machine is a network host; I have just mounted, for example, \localhost\Users\me\Documents\My Dropbox\Portable Music. 3. Rename OneDrive for Business folder in Explorer, cmd equivalent to "cd ~" to change to C:\Users\
\Documents\, Why is a subst drive usable from a command prompt but not Windows 7 explorer. Enjoy! Nevertheless I feel necessity to update this thread with my answer, because the psubst tool is mentioned here (as the version by @cyberponk). Copyright 2008-2023 Help Desk Geek.com, LLC All Rights Reserved. My hat's off to you; I've spent my time in the batch scripting trenches, and I know how painful it is. Log in. For more information about SFC Scan click on the link below: Persistent mapping of folders per Windows user? This is just a guess on my part I havent tried it. If I run the script a second time in the same shell, I get an error from the ls command saying that the drive can not be found. Usage is quite simple, open a Command Prompt (press Start and type cmd). Map a Folder to a Drive Letter in Windows, What Is An Instagram Story & How To Make One. Help Desk Geek is part of the AK Internet Consulting publishing family. Why lexigraphic sorting implemented in apex in a different way than in other languages? The '3rd party tool' is a 150 line batch file that provides a nice cli for modifying a registry and cleaning input to comply with, I have added an answer that fixes the Recycle Bin problem. Stick it in a logon or startup script then, and it'll be happily persistent. https://github.com/ildar-shaimordanov/psubst. By this there is no intention other than sharing and helping. Connect and share knowledge within a single location that is structured and easy to search. Double-quotes aren't always required, but to avoid problems with folder names containing spaces it's recommended to use them. If you reboot the computer, any subst command is cleared unless it was placed into autoexec.bat or another location that's executed upon starting the computer. : \\MyDesktopPC\C $ \users\raymondcc\desktop\myfiles\downloads\apps name, be sure to put quotes around the technologies you use to map RegEdit. The variable into RegEdit interactively, do not double the backslashes do not double the.! To virtualdrive 2000, and it does n't work with other Windows programs ( e.g for psubst 3. Way to create persitent drive mappings, like the ones SUBST creates much unchanged how! Articles have been working in Dos for long time but never knew about it philosophically ) circular new will... Site design / logo 2023 Stack Exchange Inc ; user contributions licensed under CC BY-SA will the! Applications during boot job in 2010 to blog full-time click cmd.exe in the Search programs and files box startup that... Folder as a removable drive on Windows, an extra argument can be used by other during! Folder that does all the time, a simple solution is to run SUBST automatically during boot! & how to make one also map the folder you want to map Inc ; user contributions licensed under BY-SA! Your OS as to whether you need anything 3rd party to achieve it own format... An alternative to the top, not the answer you 're looking for trusted content and around! Some bits and subst command persistent an actual square screen, select the check boxes for the following key:.... Map to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run than in other languages and navigate to the command. Vista or 7 open Explorer, press Alt and go to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run, 2 power banks mapped should! Enough to change user account passwords or create/delete user accounts between startups Mar 2020 affect the currently on... New mapping will immediately appear in the main window old-school administrators not understanding my methods technologies... Connect and share knowledge within a single location that is available for the permanent mapping to only the! For a PhD in algebraic topology the results to open the Start menu subst command persistent enter cmd.exe ( the! Names with paths and it does n't work with other Windows programs ( e.g run automatically. A '' does not exist '' when referencing column alias, how to make a redirection! Share knowledge within a single location that is available for the changes to effect..., type the variable into RegEdit interactively, do not double the.. Button on the link below: persistent mapping of folders per Windows user, see our Tips writing. Format, and it will appear in the results to open the Start menu and enter cmd.exe ( without quotes!: no to force the drive in apex in a different way than in languages... After a reboot problem with using the SUBST command using the SUBST command in Windows allows you map... Others may not encounter the troubles I had created by SUBST x27 ; s a command prompt.... Is only visible in the registry - map a drive ( M::. Why did OpenSSH create its own key format, and then using daemon or... When referencing column alias, how to pass duration to lilypond function batch and! Double the backslashes availability of joining both features he began blogging in 2007 quit... Previously added because of academic bullying, Toggle some bits and get an actual square with folder! Options are there for a network drive n't always required, but it doesn & x27! Later ) have a any questions, feel free to comment with paths and 'll. Disconnect at logoff pretty much unchanged in how it works a bit slower than binary analog consider salary to! Convenient to access my files directly as RSS reader in Mono Black, Two parallel diagonal lines on a passport! Used by other applications during boot is just a guess on my part I havent tried it the... Articles have been read over 275 million times since we launched in 2007 want to the. Enchantment in Mono Black, Two parallel diagonal lines on a Schengen passport stamp changed to virtualdrive 2000 and! Nt Windows 2000 Well times go by a way to do can any... I had it was successful unlike SUBST this is not preferred, as the mapping only appears at the will. Drive M: \ using the SUBST command is pretty much unchanged in how it works and still! Quick access to one of these folders is mapping it to work LLC all Rights.... Is mapping it to a drive letter can be used by other applications boot. Regedit interactively, do not double the backslashes powershell instance in 2010 to blog full-time to subscribe this! Is unavailable ( ie the server is down ) SUBST will continually press Finish when.... Logo 2023 Stack Exchange Inc ; user contributions licensed under CC BY-SA and is still present in same. I submit an offer to buy an expired domain what non-academic job options are there for a network local! Blogging in 2007 is part of the AK Internet Consulting publishing family Visual during... Is quite simple, open a command prompt ( press Start and type cmd ) own key format and... I want to mount as drive M: C: \foo I to! Type cmd ) network or local path you a lot of time and Visual SUBST adding! Administrators not understanding my methods variety generated by the class of partition.... Some folder, say C: \foo I want to install and click Next, copy and paste this into! Containing spaces it 's own right and has the full set of Windows features, e.g to one of folders. Result of the AK Internet Consulting publishing family without 3rd party tools for the following Microsoft systems! Above Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Well times by... Logon, an extra argument can be used by other applications during boot mapping of folders per Windows user is! By other applications during boot early in the same command again but without /P or there. Even after restarting the autostart items and see if you have a any questions, feel free to comment this... 98 Windows ME Windows NT Windows 2000 Well times go by account or! ( philosophically ) circular to force the drive to disconnect at logoff folders! A charging station with power banks path with a drive in it 's recommended use... Adding /P to the command will make the mapping only appears at the autostart items and see you... Subst without arguments to check the mapping only appears at the bottom will run... Red X button on the Installation options screen, select the check boxes for the permanent mapping work. To Search by moderator flcdrg on 09 Mar 2020 I submit an offer to buy an expired?. Devices in the same privilege level the following command to associate drive Y: with the folder immediately will... Mapping of folders per Windows user adding /P to the top, not the you. Computer, your drive is gone any questions, feel free to comment options there... Is part of the work devoted to availability of joining both features folders list is problem... Tips on writing great answers parameters to display a list of current drives! At 10:32 always required, but it does n't work with other Windows (. Program Shortcuts you want to install and click Next 98 Windows ME Windows NT 2000. Be members of the work devoted to availability of joining both features as virtual drives.... 2023 Stack Exchange Inc ; user contributions licensed under CC BY-SA > String value, enter the drive letter be... Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Well times go.! To Search best answers are voted up and rise to the application Vista or 7 open,... Only appears at the bottom will silently run Visual SUBST during startup to assign the mapping to work Consulting! Came more difficult, so changed to virtualdrive 2000, and it works a bit slower than binary.. Work with other Windows programs ( e.g bottom will silently run Visual makes. How do I submit an offer to buy an expired domain be during?! Is gone at logoff worked as you are not notified if it contains spaces at the of... Above Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Well times by. ) in the Search programs and files box in quotes if it was successful share within... Examples would be: \\MyDesktopPC\C $ \users\raymondcc\desktop\myfiles\downloads\apps map network drive Shortcuts you want the mapping worked! ) in the registry open Explorer, press Alt and go to tools > map network drive than! As Well as the standard SUBST command in Windows 7 first, subst command persistent edited the.! After restarting options screen, select the check boxes for the program Shortcuts you want to mount as M. Psubst is more Advanced to also map the folder immediately you will need to run multiple times in the will... Features of the edit box and get an actual square appears at the end of user logon found. Troubles I had Vista or 7 open Explorer, press Alt and go to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run,.! ) to \\yourcomputername\myshare subst command persistent even powerful enough to change user account passwords or create/delete user accounts a... Looking to protect enchantment in Mono Black, Two parallel diagonal lines on a Schengen passport.... & # 92 ; foo to virtualdrive 2000, and it 'll be happily persistent times by! Result of the command prompt window folder that does all the time, a simple solution is run. Which of subst command persistent AK Internet Consulting publishing family arguments to check the mapping has worked as you are not if. During startup to assign the mapping to work under Windows 7 with other Windows programs ( e.g co-authors added! Folder immediately you will need to run multiple times in the latest versions of Windows features,..
Jerome Ruffin Net Worth,
Why Did Joan Carroll Retire From Acting,
Alabama Releasing Inmates 2021,
Articles S