Jump to content

command line for start / stop IIS and copy file(s) from client to server


Freeman35

Recommended Posts

Hi,

I did this command lines, for stop ISS then copy my app to server  from my pc then start IIS server. I'm use this in w2016 server. I think its work on all other versions.

iisreset /stop
rem net stop WAS
iisreset /status
rem Connect to your pc from server
net use \\x.x.x.x\C$ {pasword} /user:{username}
rem you can use xcopy or robocopy, so can copy files & folders
copy /Y \\x.x.x.x\C$\yourpcpath\your_appname c:\inetpub\serverpath_and_filename
iisreset /start
rem net start W3SVC 
iisreset /status
rem remove log file, for lazy programmer :) for follow error log
del c:\inetpub\serverpath\log\your_appname\*

 

  • Like 2
Link to comment
Share on other sites

thank you for your suggestion,

I did it. But I get error on firebird connection, exe work normal but when I use hyper, get error while connection. This problem not from unigui,  maybe on future I can wor on this.

If I need this, I mean need more client connection. My way will be, make a login form with php, and this form connectto user db and added one field, app port. On server side, add folder and applications, diffrent port. This is just long way then hyper server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...