3

To get access to FTP file shares on a windows web server.

I need to run this batch code. I'm on a MacBook so how do I make it so I can run this sort of code?

net use W: /delete
net use W: \\10.0.2.3\web /persistent:no badPassword /user:office
2

You can connect to a server just with Finder. From Finder's Go menu, choose Connect to Server (⌘K). Enter the server address as smb://10.0.2.3/web then choose Connect. You'll be prompted for your username and password which can be saved in your Keychain.

If you want to use AppleScript, you can use the following:

tell app "Finder" to open location "smb://username:password@server/share"
  • Is it normal for this to take this long? I just says connecting to server and stays there for a while – Granny Sep 5 '17 at 10:14
  • I got it to connect using xxx.xxx.x.xx but it prompts me with the password but it doesnt want to connect. When i got told every password would work. ? – Granny Sep 5 '17 at 10:25
  • @Granny Try using an empty password. – NieDzejkob Sep 5 '17 at 12:33
  • @NieDozejkob I tried, did not work. Got no clue what to fill in so ill ask someone to give/make me a login. – Granny Sep 6 '17 at 6:27
0

I could not find a way to use the commands I provided in the question. Also i could not connect directly using the Finder function.

Instead I used TunnelBlick (VPN) to connect to the server.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .