Posted June 18, 200519 yr I've been tryin for about 3 days now to create a batch file that will execute when the system boots and will visit a site and then close. This need to be a background process, So no internet explorer is seen when this process is executed. How would I got a about it? Ive got as far as getting the batch to auto copy itself to the startup directory and run internet explorer but I need the explorer to be hidden and auto direct to the specific site. If anyone can help me out, much appreciated. If not Dont bother posting.
June 18, 200519 yr A web browser is a software application that enables a user to display and interact with HTML documents hosted by web servers or held in a file system. u dont need internet explorer if u can visualize how a webpage looks like by reading the codes.
June 18, 200519 yr i dont know your application but why not make a little socket application to fetch the page on startup, no need to mess around with browsers or suchlike
June 18, 200519 yr dark_urza said: A web browser is a software application that enables a user to display and interact with HTML documents hosted by web servers or held in a file system. u dont need internet explorer if u can visualize how a webpage looks like by reading the codes. You're so stupid it's not even funny. Actually, do either of you two have any clue what he's asking to do? Can you not read? To direct to a web-page simply put the url after start IExplore <url here> I don't think you can hide a process using a batch script, I could be wrong though.
June 18, 200519 yr Author Paine said: You're so stupid it's not even funny. Actually, do either of you two have any clue what he's asking to do? Can you not read? To direct to a web-page simply put the url after start IExplore <url here> I don't think you can hide a process using a batch script, I could be wrong though. Ok, Thanks alot paine ill try it out.
June 18, 200519 yr the startup script is COPY "nameoffile.bat" "C:/Documents And Settings/All Users/Programs/Start Menu/Startup" - I think the location is right. You better double check
June 18, 200519 yr Paine said: You're so stupid it's not even funny. Actually, do either of you two have any clue what he's asking to do? Can you not read? To direct to a web-page simply put the url after start IExplore <url here> I don't think you can hide a process using a batch script, I could be wrong though. Quote create a batch file that will execute when the system boots and will visit a site and then close. This need to be a background process, So no internet explorer is seen when this process is executed. u can visit a webpage without an internet browser dumbass... Quote So no internet explorer is seen when this process is executed so y would u start IExplore
June 18, 200519 yr Were those idiotic comments directed at me or him? I don't see why you keep saying you can visit a web page without a browser. It's like you just learnt something and want to show everyone how "smart" you are. Everyone knows you can access websites without a web browser. You would start IExplore because that's what he ASKED for help on? You seriously need to learn this magical thing called READING. I'm guessing he wants to use a bug in IE to mess with someone's computer, like making it go to one of the many "virus" sites out there and he wants to hide the fact that it's doing that. Correct me if I'm wrong. "dark_urza" I really don't see why you're replying, you're too stupid to post anything relevant to what he's asking.
June 18, 200519 yr you could always use the command -silent or -hidden to hide ie from opening. And before asking next time try this: For more information on a specific command, type HELP command-name ASSOC Displays or modifies file extension associations. AT Schedules commands and programs to run on a computer. ATTRIB Displays or changes file attributes. BREAK Sets or clears extended CTRL+C checking. CACLS Displays or modifies access control lists (ACLs) of files. CALL Calls one batch program from another. CD Displays the name of or changes the current directory. CHCP Displays or sets the active code page number. CHDIR Displays the name of or changes the current directory. CHKDSK Checks a disk and displays a status report. CHKNTFS Displays or modifies the checking of disk at boot time. CLS Clears the screen. CMD Starts a new instance of the Windows command interpreter. COLOR Sets the default console foreground and background colors. COMP Compares the contents of two files or sets of files. COMPACT Displays or alters the compression of files on NTFS partitions. CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. DIR Displays a list of files and subdirectories in a directory. DISKCOMP Compares the contents of two floppy disks. DISKCOPY Copies the contents of one floppy disk to another. DOSKEY Edits command lines, recalls Windows commands, and creates macros. ECHO Displays messages, or turns command echoing on or off. ENDLOCAL Ends localization of environment changes in a batch file. ERASE Deletes one or more files. EXIT Quits the CMD.EXE program (command interpreter). FC Compares two files or sets of files, and displays the differences between them. FIND Searches for a text string in a file or files. FINDSTR Searches for strings in files. FOR Runs a specified command for each file in a set of files. FORMAT Formats a disk for use with Windows. FTYPE Displays or modifies file types used in file extension associations. GOTO Directs the Windows command interpreter to a labeled line in a batch program. GRAFTABL Enables Windows to display an extended character set in graphics mode. HELP Provides Help information for Windows commands. IF Performs conditional processing in batch programs. LABEL Creates, changes, or deletes the volume label of a disk. MD Creates a directory. MKDIR Creates a directory. MODE Configures a system device. MORE Displays output one screen at a time. MOVE Moves one or more files from one directory to another directory. PATH Displays or sets a search path for executable files. PAUSE Suspends processing of a batch file and displays a message. POPD Restores the previous value of the current directory saved by PUSHD. PRINT Prints a text file. PROMPT Changes the Windows command prompt. PUSHD Saves the current directory then changes it. RD Removes a directory. RECOVER Recovers readable information from a bad or defective disk. REM Records comments (remarks) in batch files or CONFIG.SYS. REN Renames a file or files. RENAME Renames a file or files. REPLACE Replaces files. RMDIR Removes a directory. SET Displays, sets, or removes Windows environment variables. SETLOCAL Begins localization of environment changes in a batch file. SHIFT Shifts the position of replaceable parameters in batch files. SORT Sorts input. START Starts a separate window to run a specified program or command. SUBST Associates a path with a drive letter. TIME Displays or sets the system time. TITLE Sets the window title for a CMD.EXE session. TREE Graphically displays the directory structure of a drive or path. TYPE Displays the contents of a text file. VER Displays the Windows version. VERIFY Tells Windows whether to verify that your files are written correctly to a disk. VOL Displays a disk volume label and serial number. XCOPY Copies files and directory trees.
June 19, 200519 yr If you want to get really technical, Internet Explorer isn't classified as a web browser because it doesn't follow the HTTP standards for displaying content (by default, it will merely assume the nature of the content based on the filename extension, not the actual content of the file.). Sure there are certain programs (e.g. WGET) that I wouldn't classify as a web browser, but they simply download content as a text/plain or application/octet-stream MIME type. So, you can access content, but you can't really access websites without a web "browser". </rant>
June 19, 200519 yr The best thing I could think of would be this: cmd /c start /min iexplore It would show cmd for a second, then open IE minimized.
June 20, 200519 yr im guessing you checked my rage thread....no prob heres the solution REM Name your file thing.bat copy "thing.bat" "c:\documents and settings\all users\start menu\programs\startup" call iexplore "www.myg0t.com" You could also try to make a while loop...or just copy + paste the "call iexplore" line as many times as you want the window to keep popping up after the user clicks out of it. For some reason batch scripts wont let you make windows keep opening and cascading around the screen....well to my knowledge, anyways.
June 20, 200519 yr why does it need to connect to a website, because you could just get the bat file to run another exe that has code in to connect to a website static void Main(string[] args) { string rqst = "GET /website.htm"; string host = "localhost"; int port = 80; // Default port for Web servers // Create a client socket connected to port 80 on the local machine TcpClient client = new TcpClient(www.website.com, 80); // Construct IO streams on the TcpClient's network stream NetworkStream nStream = client.GetStream(); StreamWriter sOut = new StreamWriter(nStream, System.Text.Encoding.ASCII); StreamReader sIn = new StreamReader(nStream, System.Text.Encoding.ASCII); // Send HTTP request to the server sOut.WriteLine(rqst); sOut.Flush(); // Read the server's response string msgIn = sIn.ReadToEnd(); Console.Out.WriteLine(msgIn); // Close the network streams sOut.Close(); sIn.Close(); nStream.Close(); and to set things to start up instead of using the obvious startmenu>startup put it into the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run or hook it into another file like exporer in the .ini files
June 20, 200519 yr Author Quote r00t']why does it need to connect to a website, because you could just get the bat file to run another exe that has code in to connect to a website static void Main(string[] args) { string rqst = "GET /website.htm"; string host = "localhost"; int port = 80; // Default port for Web servers // Create a client socket connected to port 80 on the local machine TcpClient client = new TcpClient(www.website.com, 80); // Construct IO streams on the TcpClient's network stream NetworkStream nStream = client.GetStream(); StreamWriter sOut = new StreamWriter(nStream, System.Text.Encoding.ASCII); StreamReader sIn = new StreamReader(nStream, System.Text.Encoding.ASCII); // Send HTTP request to the server sOut.WriteLine(rqst); sOut.Flush(); // Read the server's response string msgIn = sIn.ReadToEnd(); Console.Out.WriteLine(msgIn); // Close the network streams sOut.Close(); sIn.Close(); nStream.Close(); and to set things to start up instead of using the obvious startmenu>startup put it into the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run or hook it into another file like exporer in the .ini files Thanks for the code on that, r00t. Ill give it ago