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. The code you are looking for is more than likely something like this: @echo off&setlocal for /f "tokens=2" %%? in ( 'net use * \\servername\sharename^|find /i "drive"' ) do echo:%%?or maybe: @echo off&setlocal for /f "delims=:" %%? in ( 'net use^|find /i "\\servername\sharename"' ) do echo:%%?: I would like to know if you really need the drive letter. If you just wish to perform a task which has UNC path issues then you can use: pushd \\servername\sharename <your code goes here> popdThis would map the drive, typically to Z: allow you to work in it, then it would move you out of the mapping and delete it.
  2. Also bear in mind that so does this!echo %logonserver:\=%
  3. I'm glad to see you give credit where it's due!
  4. You really need to provide your code if you want help you with it, otherwise we cannot see what the error is. I have never used WPI, but my understanding is such that without providing double-quotes `Program Files` would only be seen as `Program`. e.g.
  5. Yes it would make a difference! I didn't see 'Day' in your original post. This would probably work better in that case. day_mm2mmm.cmd
  6. I don't know why you are getting an error message. You stated that you are getting the output mm/dd/yyyy. The code parses your date to give you the first two tokens, using your stated / as a delimiter that means it would set %? as mm i.e. 11 which as you know doesn't have a leading 0. However, as you will note by my code, to prevent an error of the type you are getting I have already built in a fix. When your run the code in March, the %? variable would be 03. In order to remove any leading 0, I prefix a 1 thus making it 103 then subtract 100 making it read 3! SET/A would therefore never see a figure with a leading 0.
  7. This should help: mmtommm.cmd
  8. Topic moved from unattended since it relates to using GUI interface attendedly.
  9. Are you trying to type Ð Whatever you are typing into is using a particular code/character set. What is Alt-1414 supposed to represent for you, it comes out on my system as â - 1252 — West European Latin, but it depends upon your particular font/character set, locale/codepage.
  10. Welcome to the MSFN Forums. This is a good place warm up before you become too active!
  11. Yzöwl

    wow!

    Thanks for the kind words, I hope your membership of MSFNs Forums is enjoyable. and I am the Information Overlord!
  12. I hope you enjoy your membership in our unique club, MSFN. I like question marks and staying put.
  13. Welcome to the MSFN forums. answers is our capital city.
  14. On behalf of the crew and members of the MSFN Express, I bid you welcome.
  15. Yzöwl

    Hello All

    And a warm welcome from all at MSFN.
  16. Yzöwl

    Hi all

    Welcome to MSFN. so cool, I feel under-dressed!
  17. On behalf of everybody, I welcome you to our Forums.
  18. Hello and welcome to the MSFN Forums, Anushka.
  19. Syntax for REGEDIT.EXE REGEDIT [/s|-s] <FILENAME>The s switch is used to suppress any informational dialog boxes that would normally be displayed.
  20. I'm all for helping out but I'm not really interested in doing simple web searches for other people. Had the question been less generic then I'd have been a little more tempted. If you are thinking about taking on a project but this is the deciding factor in determining programming language then I'd say you're going about the project in the wrong way.
  21. You fixed your %choice%, but why are you're still copying, using, and deleting?
  22. You can create shortcuts using the built in windows tools, VBScript (.vbs) and Setup Information Files (.inf) both of which were available in different versions of Windows. The methods used to do so are available in several locations throughout these forums. Then again, if you were going to do this you'd probably be able to ignore all that and just use FileCreateShortcut in AutoIt instead
  23. First of all the file cannot possibly work since the environment variable %homepath% is incorrect. If you wanted to use that variable in that situation you'd have to use %homedrive%%homepath%, which is pointless since %userprofile% already gets there. Another thing which seems a little strange is that it'd be quicker to rename the WinRAR to Utilities instead of Making Utilities copying to it then deleting WinRAR. One more thing which strikes me as odd is that you say that you've checked the paths, but I find it a little unusual for there to be WinRAR directories created under Start Menu\Programs for both All Users and Current Users.
  24. Aside from the problem you're having with the execution of those commands, did you try registering the HTML Application Host application. %systemroot%\system32\mshta.exe /registerI'm only guessing here obviously since I've never removed IE.
×
×
  • Create New...