Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Search the Community

Showing results for tags 'script'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • The General Stuff
    • Announcements
    • Introduce Yourself!
    • General Discussion
  • Microsoft Software Products
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Server 2008/2012/2016
    • Older Windows NT-Family OSes
    • Windows 9x/ME
    • Other Microsoft Products
  • Unattended Windows Discussion & Support
    • Unattended Windows
    • Other Unattended Projects
  • Member Contributed Projects
    • Nuhi Utilities
    • Member Projects
    • Other Member Contributed Projects
    • Windows Updates Downloader
  • Software, Hardware, Media and Games
    • Forum Categories
    • Mobile Devices
  • Customizing Windows and Graphics
    • Customizing Windows
    • Customizing Graphics
  • Coding, Scripting and Servers
    • Web Development (HTML, Java, PHP, ASP, XML, etc.)
    • Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
    • Server - Side Help (IIS, Apache, etc.)
  • X's Concepts
  • The Compaq Computer Corporation Club's Discussion

Forms

  • Contact MSFN
  • Submit News

Calendars

There are no results to display.

There are no results to display.

Product Groups

  • MSFN Sponsorship

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 5 results

  1. Hello friends, I have a basic level at batch files. In one of my bacth file I use below variable for naming my backup file whose name is "2016.08.16-(08.30)-FLAMENT.rar" set HM=%time:~0,2%.%time:~3,2% echo (%HM%) --produces--> (08.30) The problem is that I want to use the same time (08.30) for the other file which related to the previous one. But since the time changes throughout the process in the same batch file, %HM% produces (08.32), not (08.30) for the time changed. how can I use same time for all processes thoughout the batch file ? I mean, I want %HM% to produce same result once the batch file runs until it finishes although the time changes. How can I do this ? Best Regards
  2. Hi guys. I need a little help here. I was searching for some batch script to do some tasks on windows 7, 8 and 10 machines and I found some interesting topic. I grab the script and I made some changes. Now I need to make the script to work and I need your help to make the changes I wrote on the script itself. If possible, please, jaclass or somebody else, help me.. The sketch for the script is: IMPORTANT: Whe the user run this script it must get elevate privilegies automaticaly (as run as administrator do). ECHO """BATCH SCRIPT TO CLEAN THINGS!!! "This script will clean things from your computer. Press Y to continue or N to cancel.." If the user type Y then show the message above and continue with the script: "Message: Doing the things. This can take a little.." @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION SET /A Counter=0 FOR %%A IN ( "c:\windows\prefetch\*.*" "c:\windows\temp\*.*" "c:\windows\tmp\*.*" "c:\tmp\*.*" "c:\temp\*.*" "c:\WINDOWS\ShellIconCache\*.*" "c:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items\*.*" "%userprofile%\Cookies\*.*" "%UserProfilePath%\Local Settings\Temp\" "%UserProfilePath%\Local Settings\Temporary Internet\*.*" "%UserProfilePath%\Application Data\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\LocalLow\Sun\Java\Deployment\cache\*.*" "%UserProfilePath%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" "%UserProfilePath%\AppData\Local\Temp\*.*" "%UserProfilePath%\AppData\LocalLow\Temp\*.*" "%homepath%\Appdata\Local\Temp\*.*" "c:\temp\*.*" "%homepath%\Local Settings\Temporary Internet Files\*.*" "%homepath%\Local Settings\Temp\*.* ) DO ( CALL :do_count %%A CALL :do_del %%A ) GOTO :EOF :do_count FOR /F %%B IN ('dir /b %1') DO ( SET /A Counter+=1 ECHO !Counter! ) GOTO :EOF :do_del ECHO del %1 GOTO :EOF When everything is done show a message to the user asking him to reboot the system: "Message: All task where done. Now, please, type R to reboot the computer or L to do it later.." Thats it. If mistakes where made, please correct and show me whats wrong so I can learn too. DEdit.: OH!!! It would be nice if the script could show messages when the task get done, one by one, like: Clean of "c:\windows\temp\*.*": DONE! Clean of ""c:\windows\tmp\*.*": DONE! and so on... :3
  3. first problem : I have set up all intallation files on WPI ,all works fine, but when i run a reboot agter programm installation, the installer call me there is a script error on the site, but the reboot is works fine and the message goes away, every time with the reeboot command {REBOOT} 5 is the same error is there anyone who have a solution for this problem ? second : when wpi starts the instalation the network connection failed with step 2/3/4 ,appears only, all work fine after the error, is there any solution to hide the error ? regards Andy
  4. I looked at the 1st three pages of the topic, but of course I didn't find an answer. I suspect that somewhere in the mass of links in the stickies at the top of the topic, my answer can be found buried in there. Please forgive my impatience. When we do a Windows XP unattended installation, there's a point during the 2nd (graphical) phase of setup, where a script can be run. My XP discs would create a default user at this time. Is the same true of Windows 7 and if so, could someone share a couple of links explaining the procedure ? What I'd like to do is launch some preparatory work from one of the RUNONCE keys and setup those registry entries prior to finalization of the system. Thanx for the use of the brain cells...
  5. Hello everybody, I am a little stuck with this following issue. We have a client WindowsXP Prof that due to security limitations will logout the user automaticly after 10min no beeing used. On this desktop there are a lot of pdf's created and stored automaticly. Now my question: Is there a way to copy those files to an network location (server) without having any user logged into the system and this on a regular base ( example every 5min?) Any ideas ? Everything is welcome. Many thanks Koen
×
×
  • Create New...