Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. I can't believe that someone had the audacity to change those links in the last 73+ months since they were posted!
  2. I didn't honestly think you were trying to do anything wrong, it was just a 'smart ars*' response to get a more complete and understandable question!
  3. Let me try to understand this, you want somebody to create application code, preferably in C#, which will mimic the look of a copyrighted piece of someone elses software! If my assessment of your criteria is incorrect then please let us know quickly before I trash this topic!
  4. Just in case of date format differences you may need Set objFSO = CreateObject("Scripting.FileSystemObject") N=Now strFNA = Right(Year(N),4) & "." & Right(100+Month(N),2) & "." & Right(100+Day(N),2) objFSO.MoveFile "testfile.txt", strFNA & ".rar"
  5. You've posted the exact same question on DonationCoder.com, so since I'll not allow it to be posted here you'll have to hope someone there will. Bear in mind too that if you are using signtool.exe you'll also need to have the redistributable files for CAPICOM - requires validation.
  6. It is clearly defined from the introduction page and when clicking on the appropriate selection, (Batch Scripting or RunOnceEX).
  7. Did you try Del /f/a/q %SystemDrive%\*.Trashes
  8. Try this: COMPRESSION_STUFF.CMD @Start "" /wait %SYSTEMDRIVE%\COOL_STUFF\7-Zip-v4.42.exe @Start "" /wait %SYSTEMDRIVE%\COOL_STUFF\WinRAR-v3.71.exeStart should at least be recognized! Or a little more 'error trapping': COMPRESSION_STUFF.CMD @Echo off Pushd %SystemDrive%\Cool_Stuff 2>%SystemDrive%\C_S.log||Goto :Eof For %%# In (7-Zip-v4.42 WinRAR-v3.71) Do (If Exist %%#.exe ( Start "" /wait %%#.exe) Else (>>%SystemDrive%\C_S.log Echo:%%# did not exist)) PopdIf you have a C_S.log file in the root your system drive then there was a problem finding the installation files.
  9. Here's an old post of mine, which may help explain the steps I once used. Because of the extra escape characters needed in that example, here's an inf version of it which may help you better see the steps taken.
  10. For now then, try changing your file to something like this: @Echo off& Setlocal enableextensions Set Count=0 :SearchRoot1 For /f "delims=:" %%# In ('FWDT.exe -f aiwroot') Do Set CDROM=%%#: If Defined CDROM Goto StartSetup Set/a Count+=1 If %Count% Leq 750 Goto SearchRoot1 Goto :Eof :SearchRoot2 For /f %%# In ('Mountvol^|Findstr [c-z]:\\') Do If Exist %%#aiwroot ( Set CDROM=%%~d#) If Not Defined CDROM Goto :Eof :StartSetup Echo:%CDROM%CDROM should never have the backslash regardless of the method employed!
  11. My response to that question would depends on how and where you are setting the NEW variable! As a side note, This FWDT utility seems a little over the top for your intended use; which other methods of detecting the CD-ROM have you used? Since most of us are using XP or later, have you tried methods using WMIC or FSUTIL from a batch file? Method 1:- Mountvol and Fsutil with drivetype @Echo off&Setlocal enableextensions For /f %%# In ('Mountvol^|Findstr [d-z]:\\') Do ( Fsutil fsinfo drivetype %%#|Find "CD-ROM">Nul&&(Set "CDROM=%%~d#")) If Not Defined CDROM Goto :Eof ::Your code goes here Echo:%%CDROM%%=%CDROM% Method 2:- Mountvol and Fsutil with filesystem check @Echo off&Setlocal enableextensions For /f %%# In ('Mountvol^|Findstr [d-z]:\\') Do ( Fsutil fsinfo volumeinfo %%#|Find "CDFS">Nul&&(Set "CDROM=%%~d#")) If Not Defined CDROM Goto :Eof ::Your code goes here Echo:%%CDROM%%=%CDROM% Method 3:- WMI search for loaded CD @Echo off&Setlocal enableextensions For /f "usebackq skip=1" %%# In ( `2^>Nul Wmic Cdrom Where "MediaLoaded='true'" Get Drive`) Do ( Set "CDROM=%%~d#") If Not Defined CDROM Goto :Eof ::Your code goes here Echo:%%CDROM%%=%CDROM% Method 4:- WMI search for CD Drives @Echo off&Setlocal enableextensions For /f "usebackq skip=1" %%# In ( `2^>Nul Wmic Cdrom Where "MediaType='CD-ROM'" Get Drive`) Do ( Set "CDROM=%%~d#") If Not Defined CDROM Goto :Eof ::Your code goes here Echo:%%CDROM%%=%CDROM% Methods 2 and 3 only find a drive containing a disk whereas 1 and 4 will find empty ones too! Give one or two a go and see if they serve you better!
  12. It doesn't sound as if you're using the right product for your needs!
  13. The script is working fine here for me, I'd guess that you have a copy/paste error. You could try downloading this prettied version of it if you're still having difficulty! ping.zip
  14. How are you running the ZuneDesktopTheme.msi? Using appropriate switches with your installation is intended to negate user interaction of this type. You could try either msiexec /i ZuneDesktopTheme.msi /quietor msiexec /i ZuneDesktopTheme.msi /qnpossibly with the /norestart switch as necessary
  15. You need to 'draw' the label on the frame! Click the label control on the tool palette, (instead of double clicking), then drag the label control across the frame to the appropriate size.
  16. If you were to show us the script, (or at the very least the part of the script which creates the %CDROM% variable and its required usage), there may be a more appropriate method. However as a quick and easy example, try using %CDROM:~0,2%
  17. The best way to catch errors is to start with a few files/mods etc. then keep on increasing until you have everything you need. However if you've added loads we're possibly going to need, (minus any keys/passwords): the winnt.sif runonceex.ext cmdlines.txt svcpack.inf dosnet.inf txtsetup.sif Listing of any addons/software included Your CD-ROM file structure showing all the locations of the added files/directories Any installation scripts you've created/modified
  18. 3. What makes you think that the error message you see has got anything to do with an Administrator name and password? In order to help us solve your problem you will need to supply us with your full structure and your pertinent installation files etc. Due to the expected size(s) please ensure that anything you provide is attached as a compressed archive.
  19. Also if I remember correctly in your last post in this forum I supplied you with a tool name and syntax for removing a line, GSAR.As jaclaz, (and now crahak), suggest there are more important things to do than create one off specialist scripts or tools for your/limited use. There are a handful of freeware utilities already made and available which will cover most of your needs.
  20. What about quotes! delsect.vbs MyFile.ini "Section Name"
  21. That works fine for me crahak!
  22. If I use your script on this: [abcd] aaaaa bbbbb cc cccc ddddd [efgh] eeeeee ffffffff gg gggg hhhhhhh using [abcd] aaaaa bbbbb cc cccc ddddd Note we now have 501 lines whereas my original only had 12.
×
×
  • Create New...