1.

Solve : Enter into network?

Answer» <html><body><p>Hi folks,<br/><br/>Actually I am trying to create a form for the front end user.<br/>But saving the data entered at the back end.<br/><br/>But, as we know that dos cannot enter the file on network<br/><br/>Do we have any work around?<br/><br/><br/>echo off<br/>color f0<br/>echo **********this is a form for all the users*************<br/><br/>:1<br/>Echo please enter the following details<br/><br/>set /p "cust_name= Pleaser enter customer name : "<br/>set /p "ph_no= Pleaser enter Phone number     : "<br/>set /p "printer= Pleaser enter Printer       : "<br/>set /p "st= Pleaser enter Service ticket   : "<br/>set /p "lead= Pleaser enter lead number       : "<br/><br/><br/>echo %cust_name%<br/>echo %ph_no%<br/>echo %printer%<br/>echo %st%<br/>echo %lead%<br/><br/><br/><br/>echo %cust_name%&gt;&gt;c:\banner\track.xls   %ph_no%&gt;&gt;track.xls   %printer%&gt;&gt;track.xls   %st%&gt;&gt;track.xls   <br/><br/>%lead%&gt;&gt;track.xls<br/><br/>Echo <br/>:mo<br/>set /p "mo= Do you want to add more details? y or n"<br/>if not defined mo <a href="https://interviewquestions.tuteehub.com/tag/goto-1009988" style="font-weight:bold;" target="_blank" title="Click to know more about GOTO">GOTO</a> :mo<br/>if "%mo%"=="y" goto :1 else EOF:<br/><br/><br/><br/>Thanks and regards Quote</p><blockquote>But, as we know that dos cannot enter the file on network<br/></blockquote> <br/>Could you explain more. Maybe I'm missing something, but where is the network file?<br/><br/> Quote<blockquote>echo %cust_name%&gt;&gt;c:\banner\track.xls   %ph_no%&gt;&gt;track.xls   %printer%&gt;&gt;track.xls   %st%&gt;&gt;track.xls   <br/><br/>%lead%&gt;&gt;track.xls<br/></blockquote> <br/>Batch code cannot add records to an Excel spreadsheet file. You could create a <strong>C</strong>omma <strong>S</strong>eparated <strong>V</strong>alues file which can be imported into Excel.<br/><br/> Code: <a>[Select]</a>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;c:\banner\track.csv<br/><br/> <br/>I can enter the details on the  Excel file.<br/><br/>I would like to enter the data on home drive that is on network like.<br/><br/><br/>\\hphome\vishu<br/><br/>This is a network driver<br/><br/>but, Dos is not able to enter the file on network and gives error. Quote<blockquote>but, Dos is not able to enter the file on network and gives error.<br/></blockquote> <br/>What error? Posting the error will save me time trying to guess it.<br/><br/>You keep <a href="https://interviewquestions.tuteehub.com/tag/referring-2982035" style="font-weight:bold;" target="_blank" title="Click to know more about REFERRING">REFERRING</a> to "DOS" but there is no "DOS" on Windows XP. Are you referring to the NT command prompt?<br/><br/>You could try mapping the network drive to your local machine: <strong>net use N: \\hphome\vishu</strong> You would then refer to your file as <strong>n:\banner\track.xls</strong> Note: the letter N was arbitrary; chose any unused letter you want.<br/><br/>You can also use the UNC notation and refer to your file as: <strong>\\hphome\vishu\banner\track.xls</strong><br/><br/>As previously mentioned, you cannot use batch code to update an Excel spreadsheet.<br/><br/>Good luck. Thanks for the reply.<br/><br/>But, it is not working.<br/><br/>Is there any way that I can enter on the network path.<br/><br/>So, that I can save my output file<br/><br/>The syntax of this command is:<br/><br/><br/>NET USE<br/>[devicename | *] [\\computername\sharename[\volume] [password | *]]<br/>        [/USER:[domainname\]username]<br/>        [/USER:[dotted domain name\]username]<br/>        [/USER:[<a href="/cdn-cgi/l/email-protection">[email protected]</a> domain name]<br/>        [/SMARTCARD]<br/>        [/SAVECRED]<br/>        [[/DELETE] | [/PERSISTENT:{YES | NO}]]<br/><br/>NET USE {devicename | *} [password | *] /HOME<br/><br/>NET USE [/PERSISTENT:{YES | NO}]<br/><br/><br/>I am getting this message  while I done that.<br/><br/>Something may be missing. Please help...<br/><br/>Help appreciated..<br/><br/>Regards <br/><br/>VishuActually I am trying to make a user end dos file. That will save the data on the network.<br/><br/>Network has a dedicated space. It is not the shared <a href="https://interviewquestions.tuteehub.com/tag/computer-243299" style="font-weight:bold;" target="_blank" title="Click to know more about COMPUTER">COMPUTER</a>.<br/><br/>It is little bit peculiar.<br/><br/>But, I know since we can open drive from computer means in windows XP.<br/>So, we should be able to open it from dos.<br/><br/>Cause dos is the basic unit of the computer. It can do most of the thing so, I hope it can do this as well.<br/><br/>I want to see <br/><br/>\\vishu\vishal<br/><br/>instead of<br/><br/>c:&gt;documents and users\vishu\desktop&gt;<br/><br/>I know we do have lots of expert on dos. <br/><br/>I hope I will get the answer.<br/><br/>And I also  want to save my output file on the network.<br/><br/><br/>Thanks and regards<br/><br/>VishuYou still haven't posted the error message. <br/><br/>If you want to put the batch file output on the network, you can you use this:<br/><br/> Code: <a>[Select]</a>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;\\vishul\vishal\banner\track.csv<br/><br/>The banner directory must exist on the network drive. <br/><br/><strong>OR</strong><br/><br/>If you want to put the batch file output on the network, you can you use this:<br/><br/> Code: <a>[Select]</a>net use N: \\vishu\vishal<br/>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;n:\banner\track.csv<br/><br/>The banner directory must exist on the network drive. <br/><br/>You cannot use the UNC path as the current directory, but you can use a drive letter that has been mapped.<br/><br/>This could be a permissions problem but you need to be more responsive to my requests for information.  <br/><br/> Sir, I am not able to get inside the path.<br/><br/>Actually it is <br/><br/>\\10.120.3.50<br/><br/>Getting error  System error 1909 has occurred<br/><br/>The referenced account is currently locked out and may not be logged on to.<br/><br/>So, I hope bad luck?<br/><br/><br/><a href="https://interviewquestions.tuteehub.com/tag/thank-1731949" style="font-weight:bold;" target="_blank" title="Click to know more about THANK">THANK</a> you for the replie<br/><br/>vishu<br/>The account you are trying to log in with is locked,  you will need to go to the machine authenticating users to \\10.120.3.50 and then unlock your user account.<br/><br/>Then go into the settings for the share you are trying to access and make sure that your account has permission to <strong>read and write </strong>to the share name (I''m guessing in your case it's called 'vishal'<br/><br/>Depending upon the OS of the machine, there maybe at least 2 spots you need to change. One is the 'share permissions' and the other is the 'folder/file' permissions.<br/><br/>I would suggest temporarily granting full access to everyone to the share until you get it working, then you can lock down the security to only your own account later.Thanks for the reply.<br/><br/>I have access to read and write.<br/><br/>As I can create any file on the network drive.<br/><br/>I can copy and paste anything.<br/><br/>Actually working on comp<br/><br/>Don't want to reveal the name completely and even network path name.<br/><br/>it's like<br/><br/>\\10.120.3.50\user mail\agent access\<br/><br/>It is not the correct path but it is like this only.<br/><br/>I can enter text word excel zip file in it. Can modify also. I have access.<br/>But, I am not able to enter anything using DOS window.<br/><br/>I have this form that saves the file on my computer but not on path.<br/><br/>What can I do???<br/><br/>Thanks for the information.<br/><br/><br/>echo off<br/>color f0<br/>echo **********this is a form for all the users*************<br/><br/>:1<br/>Echo please enter the following details<br/><br/>set /p "cust_name= Pleaser enter customer name : "<br/>set /p "ph_no= Pleaser enter Phone number     : "<br/>set /p "printer= Pleaser enter Printer       : "<br/>set /p "st= Pleaser enter Service ticket   : "<br/>set /p "lead= Pleaser enter lead number       : "<br/><br/><br/>echo %cust_name%<br/>echo %ph_no%<br/>echo %printer%<br/>echo %st%<br/>echo %lead%<br/><br/><br/>cd\<br/><br/>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;\\10.120.3.50\agent mail\agent access\track.csv<br/><br/>:mo<br/>set /p "mo= Do you want to add more details? y or n"<br/>if not defined mo goto :mo<br/>if "%mo%"=="y" goto :1<br/>else EOF:<br/>Make sure you include your path name in quotes if the files have spaces<br/><br/>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;"\\10.120.3.50\agent mail\agent access\track.csv"<br/><br/>or try<br/><br/>echo %cust_name%,%ph_no%,%printer%,%st%,%lead%&gt;&gt;%TEMP%\track.csv<br/>copy %TEMP%\track.csv  "\\10.120.3.50\agent mail\agent access\track.csv"  <br/><br/><br/>You are  <br/><br/><br/>Thank you so much. I have also clicked on thanks to you.<br/><br/>you can see it increasing.<br/><br/><br/>You are dude man!!!!!!!!!!!!<br/><br/>A thousand of raise to you.<br/><br/>Thank you so much.<br/><br/>I don't know how to thank you.<br/><br/>Really thank you.<br/><br/><br/>Thank you thank you.<br/>Thank you thank you.<br/>Thank you thank you.<br/>Thank you thank you.<br/>Thank you thank you.<br/>Thank you thank you.<br/><br/><br/>I know we have masterminds on this forum.<br/><br/>And also thank you other dudes who given replies.<br/><br/>hat off<br/>or <br/>head off.<br/><br/><br/><br/>Thanks and regards<br/>VishuYou're very welcomeThere is a little problem in excel format<br/><br/>I want to add the format like<br/><br/>Name then next cell phone no and next cell and id etc.<br/>All I want to add it into next cell. But datas are entered in single cell. So, how can I avoid it?<a href="https://interviewquestions.tuteehub.com/tag/figured-7681243" style="font-weight:bold;" target="_blank" title="Click to know more about FIGURED">FIGURED</a> it.<br/><br/>Tab will help.</body></html>


Discussion

No Comment Found