1.

Solve : Create file with different User name?

Answer» <html><body><p>Hi folks,<br/><br/>I am try to create a form that will create a XLS file in netowork <a href="https://interviewquestions.tuteehub.com/tag/drive-959713" style="font-weight:bold;" target="_blank" title="Click to know more about DRIVE">DRIVE</a> so that everyone can access it.<br/><br/><a href="https://interviewquestions.tuteehub.com/tag/want-1448756" style="font-weight:bold;" target="_blank" title="Click to know more about WANT">WANT</a> to save the file with different username.<br/><br/><a href="https://interviewquestions.tuteehub.com/tag/like-537196" style="font-weight:bold;" target="_blank" title="Click to know more about LIKE">LIKE</a> mine is vishu.xls<br/>if any other user use the form that will create the file with different user name like maxy.xls<br/><br/>Code:<br/><br/>echo off<br/>color f0<br/>mode 50,30<br/>Title <a href="https://interviewquestions.tuteehub.com/tag/hp-480511" style="font-weight:bold;" target="_blank" title="Click to know more about HP">HP</a> Sales tracker<br/><br/><br/>echo **********this is a form for all the users*************<br/><br/>echo Customer name      Phone number      Printer      Service ticket      Lead&gt;&gt; <br/><br/>"\\ndokfs03\chat\agent data\vishu.xls"<br/><br/>:1<br/>Echo please enter the following details<br/>echo.<br/>:cn<br/>set /p "cust_name= Pleaser enter customer name : "<br/>if not defined cust_name goto :cn<br/>echo.<br/>:pn<br/>set /p "ph_no= Pleaser enter Phone number: "<br/>if not defined ph_no goto :pn<br/>echo.<br/>:pr<br/>set /p "printer= Pleaser enter Printer: "<br/>if not defined printer goto :pr<br/>echo.<br/>:s<br/>set /p "st= Pleaser enter Service ticket: "<br/>if not defined st goto :s<br/>echo.<br/>:ld<br/>set /p "lead= Pleaser enter lead number: "<br/>if not defined lead goto :ld<br/><br/><br/><br/>echo. &gt;&gt;sales.doc<br/>echo %cust_name%      %ph_no%      %printer%      %st%      %lead%&gt;&gt; "\\ndokfs03\<br/><br/>chat\agent data\vishu.xls"<br/><br/><br/><br/>cls<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/><br/><br/>Thanks and regards<br/><br/>VishuIs this going to be used on multiple computers or profiles?<br/><br/>If it is, just save it as %username%.xls<br/><br/>If not though, you can have the user enter the name with a code like this:<br/><br/> Code: <a>[Select]</a>SET /p _username=""<br/>ECHO %Variables%&gt;&gt;%_username%.xlsThank you.<br/><br/>Tired was not working.<br/><br/>But it is working now.<br/><br/>Please let me know if I can change font size?To my knowledge, no. You can't change the font size with a batch file.I mean dos font size.<br/><br/>I want to format my form.You can change the default font and font size for all command prompt windows by clicking the icon at the top left <a href="https://interviewquestions.tuteehub.com/tag/corner-247265" style="font-weight:bold;" target="_blank" title="Click to know more about CORNER">CORNER</a> of the window and choosing "Properties" and then "Font". You cannot change the font type or size programmatically.<br/>Is there any command. I want it to be clanged by command. Quote from: vishuvishal on August 06, 2010, 05:15:45 PM</p><blockquote>Is there any command. I want it to be clanged by command.<br/></blockquote> <br/>He just said you couldn't.<br/><br/>This is like talking to first tier HP product support!</body></html>


Discussion

No Comment Found