-
WSjstevens
AskWoody LoungerIt took me awhile but I found some usefull batch command variable examples on the net.
@echo off
set var1=Hello
set var2=World
echo %var1% %var2%!
set var1=
set var2=Regards,
John -
WSjstevens
AskWoody LoungerChirs,
Do you know if Robocopy is capable of file compression? I would like to compress the file, move it to a new location and decompress on the other side.
I have a large number of files in size where compression seems the right choice.
Thanks,
John -
WSjstevens
AskWoody LoungerI don’t see where you specify Text as data type (in Access 2002 the data type is next to the field name).
Han’s,
I’m using Access 2007. Here is another screenshot.
Regards,
John -
WSjstevens
AskWoody LoungerWhat are you importing into? That is, is it creating the table or is it an existing table? What is the data type of the field it is importing into? I’m guessing it is numeric.
Hans,
Here is a screen shot of the import settings.
-
WSjstevens
AskWoody LoungerWhat are you importing into? That is, is it creating the table or is it an existing table? What is the data type of the field it is importing into? I’m guessing it is numeric.
The import is going to an existing table whose field’s data type is set to text.
Regards,
John -
WSjstevens
AskWoody LoungerHans,
Thank you for pointing it out to me as I overlooked it.
John
-
WSjstevens
AskWoody LoungerDon/Hans,
Thank you for your suggestions.
John
-
WSjstevens
AskWoody LoungerHere is an alternative solution to what Chip Pearson posts; tests an infinite loop on the processID and waits until it finishes prior to running the next line of code. I took bits and pieces from Chip Pearson and others to reduce the amount of lines to what you see below.
[codebox]Public Declare Function OpenProcess Lib “kernel32” _
(ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long) As LongPublic Declare Function WaitForSingleObject Lib “kernel32” _
(ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long
Public Declare Function CloseHandle Lib “kernel32” (ByVal hObject As Long) As Long
Public Const SYNCHRONIZE = &H100000
Public Const INFINITE = &HFFFFSub Start()
Dim lngRtn As Long
Dim lngProID As Long
Dim lngProHn As Long‘Process 1st SHELL call
lngProID = Shell(“Enter your shell statement here”)
GoSub Continue_Process_Check:‘Process 2nd SHELL call
lngProID = Shell(“Enter your shell statement here”)
GoSub Continue_Process_Check:MsgBox “Finished”
Exit Sub
Continue_Process_Check:
lngProHn = OpenProcess(SYNCHRONIZE, True, lngProID)
lngRtn = WaitForSingleObject(lngProHn, INFINITE)
lngRtn = CloseHandle(lngProHn)
Return
End Sub
[/codebox]Regards,
John -
WSjstevens
AskWoody LoungerI found what I was looking for [post=”638395″]here [/post] in the Lounge.
Regards,
John -
WSjstevens
AskWoody LoungerChris,
Do you know of a GUI calendar interface (free) that I can incorporate into the batch file. This is what I am trying to achieve:
1. Open GUI calendar
2. Select appropriate YYYYMMDD
3. Pass this variable (in item #2) to the batch file
4. Process batch fileThanks,
John -
WSjstevens
AskWoody Lounger -
WSjstevens
AskWoody LoungerThanks Hans,
I found the post and will have to give it a try.
Regards,
JohnHans,
I would prefer it to be in a “batch file’ as the batch file can be schedule to run.
Regards,
John -
WSjstevens
AskWoody LoungerHans,
I would prefer it to be in a “batch file’ as the batch file can be schedule to run.
Regards,
JohnOK, I’ll move it to Windows XP. Hopefully BATcher will know how to do this.
-
WSjstevens
AskWoody LoungerI thought about putting it under Windows XP but then “Coding” sort of jumped out at me.
Feel free to move it.
Regards,
JohnIs it possible to move files based on the date stamp of the file(s)?
I have a number of files that I would like to move (based on dates) to an archieve.
As an example: Move *.xls with a date stamp <= April 30, 2009
Thanks,
John -
WSjstevens
AskWoody Lounger
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Office gets current release
by
Susan Bradley
3 hours, 57 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
20 hours, 29 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
5 hours ago -
Stop the OneDrive defaults
by
CWBillow
21 hours, 18 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 7 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 9 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 9 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 10 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 10 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
23 hours, 7 minutes ago -
Enabling Secureboot
by
ITguy
1 day, 6 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 18 hours ago -
No more rounded corners??
by
CWBillow
1 day, 14 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 4 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 7 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 9 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 4 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 17 hours ago -
May preview updates
by
Susan Bradley
2 days, 4 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 20 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 9 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 6 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 8 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 8 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
6 hours, 29 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 20 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 19 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 10 hours ago -
Another test post
by
gtd12345
4 days, 10 hours ago -
Connect to someone else computer
by
wadeer
11 hours, 49 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.