A way to make a batch file type a reply to himself
Hi I want to use the command Net use in a batch file. But when I login I have to provide a name of user and password. Is there anyway that I can do the batchfile itself answer. I tried to use echo and type, but he's expecting me to type. I guess I could do it, but it will be for the family and I would like if possible without user intervention (could tell you you like this) or a better way to say it would be unattendend. In easy words, I want them to be able to double-click on the file and be on the road to 'computer '. But when I ran it just now, he did not ask anything. This just work up to that disconnect me?
You can include the user name and password in the command:
Drive NET USE: password \\computer\share / USER: username Boulder computer Maven
Most Microsoft Valuable Professional
Tags: Windows
Similar Questions
-
What is the best way to make a PDF file several Photoshop images, while retaining the layers in editable for later use mode? I tried to do in Acrobat, but it does not keep separate layers. I also tried to automate the PDF presentation in Photoshop, but it combines the layers as well. I need to enable layers from photoshop retain their ability to be edited.
It is not possible at this time, Photoshop is not a page layout program and pdf is hardly a format suitable to hold several files psd layered or editable page layouts.
Why would you do that anyway?
-
I want to make a batch file, so I can save some files on another disk
On XP, you can make one. BAT file with a text editor and it will work. On XP Professional the. BAT file that make you in word processor does not work. Can someone help me please?
The game, 13 Sep 2012 22:41:40 + 0000, older2 wrote:
On XP, you can make one. BAT file with a text editor and it will work. On XP Professional the. BAT file that make you in word processor does not work. Can someone help me please?
Sorry, but what you say above is not correct. This has nothing to do
What version of Windows you are running, or which edition of this version
Windows that you are running. It has to do with your word processor and how you
use it.What treatment do you use?
A batch file must be a text file, not a file Microsoft Word .doc, one
File WordPerfect .wpd, .rtf file, or any other type of Word
file processor. In addition, it must have the extension. bat.You must save the file with one save slot, not a backup and make sure that
that it is saved as a text file with the extension. bat.Moreover, in general, almost any word processing is a bad choice for
creation of batch files. A text editor such as Notepad that comes with
Windows, is much easier to use for this purpose and is a much better
choice.Ken Blake, Microsoft MVP
-
make the default php file type
I have a client configured to use Contribute to edit a PHP site. When it creates a new page, the default file extension is .htm, and it must be .php. I searched for a way to change the default file type in preferences, but I'm not. Is there a way to do this?Try to go into the settings to administer Web site and select New Pages > and then select default file extension and Add .php.
-
I need help doing things with batch files
This applies to All THE VERSIONS OF WINDOWS and probably relates more to MSDOS than any other.
cmd.exe or notepad.exe and comand.com applications
I'm doing some kind of Setup.
I have a tool nice lottle I did that works with a batch file. and he has 3-4 text file sthat go with it. I wanted to make a batch file which would act as an installer. make the MainMenu.txt, ReadMe.txt, Credits.txt, DISCLAIMER.txt fill them with the correct values, then make the .bat file that acts as the user interface. and when this launch the batch file under its weight made it has created (and not as a child of cmd window) then delete itself so all that remained was the new files...
I tried the command IF [NOT] EXIST filename command because it's the only IF the syntax I have any slight understanding of
EXAMPLE OF
mkdir EXAMPLE
EXAMPLE of CD
IF [NOT] EXIST MainMenu.txt GOTO CMAIN
: CMAIN
ECHO the text I want to be in the lead > MainMenu.txt
pause
EXAMPLE OF
but when I run the command 'Betainstall.bat' file, it opens and then closes immediately. What would be nice if it was the CASE of WAT I TOLD it to. it doesent need to be opened, because it only creates a directory then makes em fills with files on and its done... but it doesent do anything. and since it closes too quickly it's a bit hard to read all the messages that appears. (im not fast enough for print scrn) and addition of the pause at the end did not a thing. and / k has ever helped me before
so someone who knows nothing about MS-DOS or command prompt this is a great opportunity to showcase the prowess of youre
I just need to find how to get cmd to delete the last entry of Y.
If I could get the Y equal to NULL it should write the %M % and not okay right?
For the first part of what I mentioned above, you can simply do:
SET M =
The M variable will then to null.
However, for what is in quotes: No. get M set to null will do what you want. Use the command I mentioned in my previous post. Note the signs double% to get the result of %M % in the command of the user file.
IF the echo % M %! == 1 ! Goto: whatever > USER - X 2. 0.Bat
Then the USER - X 2. 0.Bat will contain the line:
IF M %! == 1 ! Goto: whatever
Now, from your original:
SET /p M = type OK or CANCEL, and then press ENTER:
IF %M % IS INSTALL OK GOTO
IF %M % IS CANCEL LEAVE
: INSTALLYou can see that if the M variable contains not exactly the capitals OK or CANCEL capitalized (that you specified), then the second half of each IF statement will not be executed. Your sample of what is getting written to the file USER - X 2. 0.Bat, you typed tiny ok and it works again the part of the installation of your batch file because he simply fell thru to the: part of the INSTALLATION.
What you want is a batch program that allows to anticipate all possible ways that the user could answer "correctly". When you check if the variable M is equal to OK, it checks that specifically. All other cases the letters will not be the exact match. That's why I ran three different lines looking for okay, okay, then OK.
The fall same thru happen here:
SET /p M = press on, then ENTER:
IF %M % == y GOTO RUN
: RUNBecause the only thing you're looking for is there it will be Goto: EXECUTION of the IF statement , if (and only if) M is exactly there, but if it is equal to anything else it will fall through to the next line which is your: block RUN. As you have, any response is typical for the "SET/p M = press on, then ENTER", it's going to fall through and get to the: RUN block. The only exception is that if the user presses the enter only key, it will then generate the error message that I mentioned and end the batch file. That's why I used the! at the end of the two %M % and on the end of what we test, such as OK! This test if the user pressed the key entry in itself without the batch file, which gives an error.
So, instead of this:
IF the ECHO %M % == 1 GOTO RUN > USER - X 2. 0.bat
IF the ECHO %M % == 2 GOTO README > USER - X 2. 0.bat
IF the ECHO %M % == 3 CREDITS GOTO > USER - X 2. 0.bat
IF the ECHO %M % == 4 GOTO WARNING > USER - X 2. 0.bat
IF the ECHO %M % == 5 GOTO EOF > USER - X 2. 0.batUse this:
IF THE ECHO % M %! == 1 ! GOTO RUN > USER - X 2. 0.bat
IF THE ECHO % M %! == 2 ! GOTO README > USER - X 2. 0.bat
IF THE ECHO % M %! == 3 ! GOTO CREDITS > USER - X 2. 0.bat
IF THE ECHO % M %! == 4 ! Disclaimer GOTO > USER - X 2. 0.bat
IF THE ECHO % M %! == 5 ! GOTO EOF > USER - X 2. 0.batOr use which does the same thing, but look more pretty:
IF the echo % M %! == 1 ! Goto: run > user - X 2. 0.Bat
IF the echo % M %! == 2 ! Goto: ReadMe > user - X 2. 0.Bat
IF the echo % M %! == 3 ! Goto: credits > user - X 2. 0.Bat
IF the echo % M %! == 4 ! Goto: warning > user - X 2. 0.Bat
IF the echo % M %! == 5 ! Goto: EOF > user - X 2. 0.Bat(Upper and lower case for the block names all answer the same, whereas they are not nit-picky as the tests within the statement itself. I put the: before the labels of block in the IF statement so I know it's a label. I left the uppercase EOF because it is an acronym for end of file. And I use IF instead of If since it's a small order and I like it to stand. This bit is just my personal preference.)
Another thing, you can make is for your first redirection in User - X 2. 0.Bat is to use the single > crush entire previous existence of this file. Then for forwarding the following him, continue the > who is the operator 'Add file '.
Better yet would be first to check if the file of the user - X 2. Bat is and give the user the possibility to replace, rename, or to have an abortion.
Clear as mud now? :)
Edit: I just looked and I see that you are already doing the single > for the first time. Pass over my hikes on this part. Laughing out loud
-
Create the batch file to remove log files in Windows
We are running Oracle 11 G under Windows 2008 R2. For free tickets, we run daily from rman commands manually. I would like to create a batch to do it automatically. This is the batch file that I created.
The echo Yes | Del Y:\Orace11g\temp\*.*
Robocopy D:\Relius\Admin\RADB\ArchiveLogFiles\ Y:\Orace11G\temp\ b / mining: 3
RMAN
connect sys@radb target;
password
overlap archivelog all;
remove expired archivelog all;
Yes
but it stops at rman
C:\ > rman
Recovery Manager: release 11.2.0.1.0 - Production on Mar 21 10:49:27 Oct 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN >
What is the correct way to cerate the batch file to delete the expired archivelogs?
Hello
It is not a problem of RMAN, but is that a batch under windows creation/configuration is the problem.
See this URL, how do I Configure a tasks scheduled under Windows 2008 R2.
-Next, create a file .bat with your instructions:
Set ORACLE_SID = radb
set ORACLE_HOME = c:\dbhome
RMAN cmdfilemyrmancommands.csv msglog = sys/PASSWD@radb target = c:\log.log
- Then put your RMAN commands in the file myrmancommands.csv
Run {}
devote to the disc channel type c1:
overlap archivelog all;
remove expired archivelog all;
output channel c1;
}
Best regards
-
call a batch file in the sql scripts
Hi friends,
I'm looking for a way to call any batch file in sql scripts. I avoid using the DBMS_SCHEDULER package because my application server and database server are deparaments.
I use the sql script using the server.plz application.
Ah, I see. Of course, this explains everything.
Now to be serious: there is no way to run a batch SQL script. The Tools that present SQL statements to the database are often able to do; host in SQL * Plus may issue commands to the OS, the host of builtin forms is it too and with dbms_scheduler , you can run a shell script on the database server.
So depending on the tools you use, there are several ways to run the OS commands. So far you didn't tell us what you want to do with what tools in the version you want to do. So to only answer is: it is not possible. You cannot run a simple SQL command script.
see you soon
-
Change in the type of batch files
I had a text editor that has saved many small text without any extension files.
They are listed as 'file' without extension in my list of documents.
I got another text editor that records correctly my new files with the .txt extension.
I want to change large groups of text files that have no extension to the type .txt. I have hundreds of them in several files.
I can't associate a file with my new text editor type such that there is no extension to associate.
Hello
In Windows Explorer, select the 1 file in a folder - then pressing SHIFT while scrolling down
at the end of these files - when a group is highlighted right-click - Rename - enter *.txt
and everyone should have this extension added.How to rename batches of files in Windows: 4 ways to rename multiple files
http://www.howtogeek.com/111859/how-to-batch-rename-files-in-Windows-4-ways-to-rename-multiple-files/Batch files
http://commandwindows.com/batch.htmYou can use an IF Errorlevel to check to determine if the conditions are met to loop
return or stop the process. Use labels.ERRORLEVELs
http://www.robvanderwoude.com/errorlevel.phpThere is a lot of help for commands using BING or Google files.
I hope this helps.
If statements
http://www.robvanderwoude.com/if.phpConnection with IF statements.
http://commandwindows.com/batchfiles-branching.htmWildcard characters:
* = all places
? = a single place
Ren 'xyz123_*.wav '. WAV
Rename the files xyz123_*.wav for the FIRST five places of the original file name. However
It would only deal with the first file as all others would be end upward with duplicate names.===========================================================
PowerShell script is another option;
Windows PowerShell
http://TechNet.Microsoft.com/en-us/library/bb978526.aspxScriptiing with Windows PowerShell
http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419PowerShell - Introduction
http://commandwindows.com/PowerShell.htmWindows PowerShell
http://msdn.Microsoft.com/en-us/library/aa973757 (vs.85) .aspxThe Windows PowerShell user manual
http://TechNet.Microsoft.com/en-us/library/ee221100.aspxWriting scripts with Windows PowerShell & download link
http://TechNet.Microsoft.com/en-us/scriptcenter/PowerShell.aspxHow Do i: Windows PowerShell 2.0?
http://TechNet.Microsoft.com/en-us/Windows/dd320288.aspxWindows PowerShell
http://en.Wikipedia.org/wiki/Windows_PowerShellWindows management framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0)http://support.microsoft.com/kb/968929
How to open Windows PowerShell in Windows 7
http://www.SevenForums.com/tutorials/27758-Windows-PowerShell.htmlI hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">-> -
is there a way to make a smart folder to hidden files in Picasa (or folders)?
I know how to "unmask" the files on a Mac, but I was wondering if there was a way to make a smart folder of these hidden files. Specifically, I was looking to make a smart list of the original Picasa files that are usually hidden.
You can add a criterion of visibility of the file. Is not a user of Picasa, I can't offer more specific advice.
When you start a new smart folder, click on the button in the criteria section.
Click on the button to select a category of criteria and choose another...
Scroll the list (or using the search) to find the Invisible file. If you select and click Ok, it will serve as a criterion. If you want that this element added to the list of criteria, so you don't have to hunt for it with others, click the box "in the Menu.
Combine this with some other criteria will be useful to isolate the original Picasa.
-
How can I change a Windows Movie Maker file type?
How can I change the file type to download my movies to eksample, Facebook?
Hi Edvardflaatten,
Here is a list of the types of files supported by Facebook: http://www.facebookvideo.it/facebook-video-formats.php. You will notice that one is. WMV. It is a common type that works with Windows Media Player.
Here is the procedure to convert a Windows Movie Maker file to WMV format: http://www.ehow.com/how_5821594_convert-movie-maker-file.html.
I hope this helps.
Good luck!
-
I have Vista and Windows Movie Maker. I created a movie and he sent an email, but the recipient could not open. The message was that it was an unsupported file type. How can I help them?
The file is a MSWMM. When I emailed the file to others they cannot open it because the message indicates that it is an unsupported file Type. How can I email the film so that my e-mail recipients can open it?
===================================
The .mswmm file is project Movie Maker file... it's
is useful for a re-issue of the project.To create a file .wmv video that your recipients can view
You must publish the project.Take a look at the following article:
Windows Vista-
Publish a movie in
Windows Movie Maker
http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *. -
Original title: Windows cannot find "C:\Program Files\Common Files\LogiShrd\CDDRV3\LDConfig.exe." Make sure that you type the name correctly, and then try again.
This error keeps showing up in when I connect to my pc. How am I able to fix this? It's really annoying. Please help me.
Its a file/utility Logitech and nothing to do with the victory
-
Impossible to make a text doc in a batch file, please help!
So I try to create a batch file, but when I open a document text and make the end ".bat" (without the quotes) it always makes it a text document. IM using Windows 8, if that helps.
Hi Timothy,.
I suggest you to send your query in MSDN Forums of Support for assistance.
http://social.msdn.Microsoft.com/forums/en-us/home
It will be useful. Back to us for any problem related to Windows. We will be happy to help you.
-
Is there a way to make downloadable read-only/no PDF files in Acrobat format?
Hi all, I am new to the Forum and have a question about the creation of a PDF file that is read-only and also not downloadable. I know that I can do the part read-only by using the security settings, but it seems not be a setting that would prevent someone from copying the PDF file should be displayed on a Web page?
Any who have and experience in this field? My employer wants to make our PDF files online-visible only on the webpage and non-prontable, but I think that it is perhaps something that should be done at the level of web design. Any help would be appreciated to gratly! Thank you!!
No, if make you it available on a web site, which means that they are necessarily available for download. There would be no way for someone to see if they were not.
There are possible restrictions with digital rights (DRM) products, such as Adobe LiveCycle Rights Management, but at a significant cost. For more information, see: http://www.adobe.com/products/livecycle/rightsmanagement/
-
Batch file, restoring links to different type - InDesign CS4
Can someone help me to generate a script that will connect all the images of a particular file type in a file of the same name, but a different format? For example, each linked Illustrator file should be reprinted in PDF or EPS format when the same filename (but of course appropriate file extension).
Colin
Hi Colin,
It is already discussed, but here code below for you
var doc = app.activeDocument;
var lk = doc.links;
for (i = lk.length - 1; i > = 0; i--)
{
lkname = lk [i] .name;
If (lkname. IndexOf(".ai") > = 0)
{
var lkname0 = lkname.split (".ai") [0];
lkfolder = File(lk[i].filePath).parent;
myFile = File(lkfolder+"/"+lkname0+".pdf");
If {(myFile.exists)
LK[i].relink(file(lkfolder+"/"+lkname0+".pdf"));
}}
}
or you can use Kasyan re-edit the link image script
http://Kasyan.HO.com.UA/relink.html
Shonky
Maybe you are looking for
-
HelloI've automatically updated value. At some point on a Web site, I was told to update to Firefox, which should be automatically already be done. Nothing is done, I was still using, I forgot version 38 or 39, so the update to version 40 has not bee
-
Firefox 4 will not open thunderbird for mailto and send links
I use Windows 7 Enterprise.Since the FF4 update will not open Thunderbird when a mailto link or send the link is clicked. My system has Thunderbird selected as the default e-mail client, and these links work in other browsers. Following some help onl
-
Watch download my tomtom on my ipad sports
I'm on vacation next week and want to be able to download data from my tomtom sports watch. I usually use my iMac. Can I download on my iPadAir with a suitable plug? Thank you Sue
-
Network says 'Search'... »
I have an iPhone 5 s, update to the latest version 9. Any iOS. I never had this problem before, but I allowed my iPhone to die completely (nothing new) and when I put it on the charger to the phone turns on. * POOF *. NO network, "the search...". "I
-
interoperability c# get the name of the step
I'm trying to use a code c# module in order to be able to read the name of the step of the call. However, my code only all returns 'Step' as the name of the object (no matter what the step is actually called in the sequence). Note that I also tried t