Jump to content

Recommended Posts

Posted

Hi team,

I'm back in the forum after all lost of years o:)

I started with Autoit at the beginning and i still use it almost every days

i'm not sure i'm in the good place but i propose a new function for autoit

Why not addind in the drive mapping place a function like "MapFolder" using "Subst" function from microsoft ?

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/subst.mspx?mfr=true

To drive a folder as a drive letter...

exemple :

Run(@ComSpec & " /c " & 'subst D: "C:\My Folder"', "", @SW_HIDE)    ; Mapp the folder "C:\My Folder" with letter "D:\" mapping drive
;Run(@ComSpec & " /c " & 'subst D: /d', "", @SW_HIDE)    ; Command for removing the mapping

with a syntax like :

FolderMapAdd ( "Mapping letter", "remote folder")

I'm happy to see you Again

Best regards

Marc

PS: Just a question about mapping a drive

I have map a network like "//Network/folder1/folder2/....folderxxx" with a letter "X:" but in Explorer the drive mapped appear like X: (//Network/folder1/folder2/....folderxxx)

I have changed the name with mouse right clic and rename it X: (My network) but is there a command or a script to do it automatically ?

Thank you for your answer ;)

Posted

Correct me if I am wrong, but I think the _WinAPI_*() functions cover this already.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Hi Mat,

DriveMappAdd give you the possibiliby for mapping a drive but not a folder

For my second question, when you mapp a drive you cannot change the name of the result mapping drive

In the name, you have the complete network way as x:folder1subfolder1subdolder2...

You can remame it by right clic of the mouse and "remane" to obtain X: (My network) but autoit doesn't permit it

Best regards

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...